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,24 @@
from .authrone_com import AuthroneCom
from .helpers.std import Std
class ThreeAsqInfo(AuthroneCom, Std):
_ch_selector = '.mng_det ul.lst > li > a.lst'
def get_chapter_index(self) -> str:
return self.re.search(
r'\.info/[^/]+/([^/]+)',
self.chapter
).group(1).replace('.', '-')
def get_main_content(self):
return self._get_content('{}/{}/')
def get_manga_name(self) -> str:
return self._get_name(r'\.info/([^/]+)')
def get_files(self):
return list(set(super().get_files())) # remove doubles
main = ThreeAsqInfo