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,51 @@
from abc import abstractmethod
class Abstract:
@abstractmethod
def get_main_content(self): # call once
pass
@abstractmethod
def get_manga_name(self) -> str: # call once
return ''
@abstractmethod
def get_chapters(self) -> list: # call once
return []
def prepare_cookies(self): # if site with cookie protect
pass
@abstractmethod
def get_files(self) -> list: # call ever volume loop
return []
# @abstractmethod
# def get_archive_name(self) -> str:
# pass
# for chapters selected by manual (cli)
@abstractmethod
def get_chapter_index(self) -> str:
pass
def book_meta(self) -> dict:
pass
def before_download_chapter(self):
pass
def get_cover(self):
pass
def before_file_save(self, url, idx) -> str: # return url !
return url
def after_file_save(self, _path: str, idx: int):
pass
@abstractmethod
def chapter_for_json(self) -> str:
pass