Added manga-py source

This commit is contained in:
2019-12-14 22:33:14 -05:00
parent 9a4dd4b09b
commit 45067caea6
420 changed files with 18054 additions and 0 deletions

View File

@@ -0,0 +1,18 @@
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