Added manga-py source
This commit is contained in:
50
manga-py-stable_1.x/manga_py/providers/_template.py
Normal file
50
manga-py-stable_1.x/manga_py/providers/_template.py
Normal file
@@ -0,0 +1,50 @@
|
||||
from manga_py.provider import Provider
|
||||
from .helpers.std import Std
|
||||
|
||||
|
||||
class _Template(Provider, Std):
|
||||
|
||||
def get_archive_name(self) -> str:
|
||||
pass
|
||||
|
||||
def get_chapter_index(self) -> str:
|
||||
pass
|
||||
|
||||
def get_main_content(self):
|
||||
pass
|
||||
|
||||
def get_manga_name(self) -> str:
|
||||
return ''
|
||||
|
||||
def get_chapters(self):
|
||||
# return self._elements('a.chapter')
|
||||
return []
|
||||
|
||||
def get_files(self):
|
||||
return []
|
||||
|
||||
def get_cover(self) -> str:
|
||||
# return self._cover_from_content('.cover img')
|
||||
pass
|
||||
|
||||
def book_meta(self) -> dict:
|
||||
"""
|
||||
:see http://acbf.wikia.com/wiki/Meta-data_Section_Definition
|
||||
return {
|
||||
'author': str,
|
||||
'title': str,
|
||||
'annotation': str,
|
||||
'keywords': str,
|
||||
'cover': str,
|
||||
'rating': str,
|
||||
}
|
||||
"""
|
||||
pass
|
||||
|
||||
def chapter_for_json(self) -> str:
|
||||
# overload std param, if need
|
||||
# return self.chapter
|
||||
pass
|
||||
|
||||
|
||||
main = _Template
|
||||
Reference in New Issue
Block a user