1 from manga_py
.provider
import Provider
2 from .helpers
.std
import Std
5 class _Template(Provider
, Std
):
6 def get_archive_name(self
) -> str:
8 Allows you to overload name generation. Method may be missing
11 def get_chapter_index(self
) -> str:
13 Any string separated by "-"
17 def get_content(self
):
19 Called second. Returns the initial content to parse (just a cache)
20 Can be obtained using self.content
23 def get_manga_name(self
) -> str:
25 String for the name of the manga directory
28 def get_chapters(self
):
30 Should return an array of data (you can return the result of the self._elements ('css selector') method)
32 # return self._elements('a.chapter')
37 Should return an array of strings (url of images)
41 def get_cover(self
) -> str:
43 # return self._cover_from_content('.cover img')
45 def book_meta(self
) -> dict:
48 :see http://acbf.wikia.com/wiki/Meta-data_Section_Definition
59 def chapter_for_json(self
) -> str:
61 overload std param, if need
62 If present, overloads getting chapter name for json dump
63 Should return a string