Files
mangaDownloader/manga-py-stable_1.x/manga_py/providers/trashscanlations_com.py
2019-12-14 22:33:14 -05:00

19 lines
486 B
Python

from .zeroscans_com import ZeroScansCom
class TrashScanlationsCom(ZeroScansCom):
def get_chapter_index(self) -> str:
ch = self.chapter
idx = self.re.search(self._chapter_selector, ch)
idx = self.re.split(r'[^\d]', idx.group(1))
return '-'.join(idx)
def get_main_content(self):
return self._get_content('{}/series/{}/')
def get_manga_name(self) -> str:
return self._get_name('/series/([^/]+)')
main = TrashScanlationsCom