add required class attributes
This commit is contained in:
parent
008bf57264
commit
7e414804c8
1 changed files with 8 additions and 2 deletions
|
|
@ -72,6 +72,12 @@ class GenericComicReaderBackend(BaseBackend, ICapGallery):
|
||||||
LICENSE = 'AGPLv3+'
|
LICENSE = 'AGPLv3+'
|
||||||
BROWSER = GenericComicReaderBrowser
|
BROWSER = GenericComicReaderBrowser
|
||||||
|
|
||||||
|
BROWSER_PARAMS = {}
|
||||||
|
ID_REGEXP = None
|
||||||
|
URL_REGEXP = None
|
||||||
|
ID_TO_URL = None
|
||||||
|
PAGES = {}
|
||||||
|
|
||||||
def create_default_browser(self):
|
def create_default_browser(self):
|
||||||
b = self.create_browser(self.BROWSER_PARAMS)
|
b = self.create_browser(self.BROWSER_PARAMS)
|
||||||
b.PAGES = self.PAGES
|
b.PAGES = self.PAGES
|
||||||
|
|
@ -95,8 +101,8 @@ class GenericComicReaderBackend(BaseBackend, ICapGallery):
|
||||||
_id = match.group(0)
|
_id = match.group(0)
|
||||||
else:
|
else:
|
||||||
return None
|
return None
|
||||||
|
|
||||||
|
|
||||||
gallery = BaseGallery(_id, url=(self.ID_TO_URL % _id))
|
gallery = BaseGallery(_id, url=(self.ID_TO_URL % _id))
|
||||||
with self.browser:
|
with self.browser:
|
||||||
return gallery
|
return gallery
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue