[gelbooru] update to new format

This commit is contained in:
Mike Fährmann
2015-11-21 02:40:30 +01:00
parent 63a38edd05
commit bb8f2a3e9d
2 changed files with 25 additions and 17 deletions

View File

@@ -17,7 +17,6 @@ import urllib.parse
class BooruExtractor(Extractor):
info = {}
params = {"limit": 50}
headers = {}
page = "page"
api_url = ""
@@ -26,6 +25,7 @@ class BooruExtractor(Extractor):
def __init__(self):
Extractor.__init__(self)
self.params = {"limit": 50}
self.setup()
def items(self):
yield Message.Version, 1
@@ -40,6 +40,9 @@ class BooruExtractor(Extractor):
def items_impl(self):
pass
def setup(self):
pass
def update_page(self, reset=False):
"""Update the value of the 'page' parameter"""
# Override this method in derived classes if necessary.