[danbooru] inherit from BaseExtractor

- merge danbooru and e621 code
- support booru.allthefallen.moe (closes #2283)
- remove support for old e621 tag search URLs
This commit is contained in:
Mike Fährmann
2022-02-11 21:01:51 +01:00
parent bc0e853d30
commit 563bd0ecf4
6 changed files with 212 additions and 215 deletions

View File

@@ -20,6 +20,7 @@ CATEGORY_MAP = {
"archiveofsins" : "Archive of Sins",
"artstation" : "ArtStation",
"aryion" : "Eka's Portal",
"atfbooru" : "ATFBooru",
"b4k" : "arch.b4k.co",
"baraag" : "baraag",
"bbc" : "BBC",
@@ -139,6 +140,12 @@ SUBCATEGORY_MAP = {
"artstation": {
"artwork": "Artwork Listings",
},
"atfbooru": {
"favorite": "",
},
"danbooru": {
"favorite": "",
},
"desktopography": {
"site": "",
},
@@ -225,6 +232,7 @@ _APIKEY_WY = \
AUTH_MAP = {
"aryion" : "Supported",
"atfbooru" : "Supported",
"baraag" : _OAUTH,
"danbooru" : "Supported",
"derpibooru" : _APIKEY_DB,