code adjustments according to pep8 nr2

This commit is contained in:
Mike Fährmann
2017-02-01 00:53:19 +01:00
parent f1b7d41608
commit 94e10f249a
68 changed files with 390 additions and 167 deletions

View File

@@ -10,13 +10,14 @@
from . import booru
class SafebooruExtractor(booru.XMLBooruExtractor):
"""Base class for safebooru extractors"""
category = "safebooru"
api_url = "http://safebooru.org/index.php"
def setup(self):
self.params.update({"page":"dapi", "s":"post", "q":"index"})
self.params.update({"page": "dapi", "s": "post", "q": "index"})
def update_page(self, reset=False):
if reset is False:
@@ -24,6 +25,7 @@ class SafebooruExtractor(booru.XMLBooruExtractor):
else:
self.params["pid"] = 0
class SafebooruTagExtractor(SafebooruExtractor, booru.BooruTagExtractor):
"""Extractor for images from safebooru.org based on search-tags"""
subcategory = "tag"
@@ -34,6 +36,7 @@ class SafebooruTagExtractor(SafebooruExtractor, booru.BooruTagExtractor):
"content": "e5ad4c5bf241b1def154958535bef6c2f6b733eb",
})]
class SafebooruPostExtractor(SafebooruExtractor, booru.BooruPostExtractor):
"""Extractor for single images from safebooru.org"""
subcategory = "post"