Added manga-py source
This commit is contained in:
26
manga-py-stable_1.x/manga_py/providers/mangaid_me.py
Normal file
26
manga-py-stable_1.x/manga_py/providers/mangaid_me.py
Normal file
@@ -0,0 +1,26 @@
|
||||
from .gomanga_co import GoMangaCo
|
||||
from .helpers.std import Std
|
||||
|
||||
|
||||
class KomikIdCom(GoMangaCo, Std):
|
||||
_name_re = '/manga/([^/]+)'
|
||||
_content_str = '{}/manga/{}/'
|
||||
_chapters_selector = '.animeinfo ul > li span a:not([rel])'
|
||||
|
||||
def get_chapter_index(self) -> str:
|
||||
re = r'/[^/]+\.\w+/[\w-]+?-(\d+)(?:[^\d](\d+))?'
|
||||
idx = self.re.search(re, self.chapter)
|
||||
return self._join_groups(idx.groups())
|
||||
|
||||
def get_files(self):
|
||||
parser = self.html_fromstring(self.chapter)
|
||||
return self._images_helper(parser, '#readerarea img')
|
||||
|
||||
def get_cover(self) -> str:
|
||||
return self._cover_from_content('.attachment-post-thumbnail')
|
||||
|
||||
def prepare_cookies(self):
|
||||
pass
|
||||
|
||||
|
||||
main = KomikIdCom
|
||||
Reference in New Issue
Block a user