mirror of
https://github.com/mikf/gallery-dl.git
synced 2024-11-22 10:42:34 +01:00
[deviantart] rename 'stash' to 'extra' (#302)
'stash' is already used as a name for the StashExtractor and therefore expected to be a dictionary.
This commit is contained in:
parent
2184e3a86b
commit
e05a96db5e
@ -395,6 +395,17 @@ Description Try to follow external URLs of embedded players.
|
||||
=========== =====
|
||||
|
||||
|
||||
extractor.deviantart.extra
|
||||
--------------------------
|
||||
=========== =====
|
||||
Type ``bool``
|
||||
Default ``false``
|
||||
Description Download extra Sta.sh resources from description texts.
|
||||
|
||||
Note: Enabling this option also enables deviantart.metadata_.
|
||||
=========== =====
|
||||
|
||||
|
||||
extractor.deviantart.flat
|
||||
-------------------------
|
||||
=========== =====
|
||||
@ -487,17 +498,6 @@ Description The ``refresh_token`` value you get from linking your
|
||||
=========== =====
|
||||
|
||||
|
||||
extractor.deviantart.stash
|
||||
--------------------------
|
||||
=========== =====
|
||||
Type ``bool``
|
||||
Default ``false``
|
||||
Description Extract Sta.sh resources from description texts.
|
||||
|
||||
Note: Enabling this option also enables deviantart.metadata_.
|
||||
=========== =====
|
||||
|
||||
|
||||
extractor.deviantart.wait-min
|
||||
-----------------------------
|
||||
=========== =====
|
||||
|
@ -22,13 +22,13 @@
|
||||
"deviantart":
|
||||
{
|
||||
"refresh-token": null,
|
||||
"extra": false,
|
||||
"flat": true,
|
||||
"folders": false,
|
||||
"journals": "html",
|
||||
"mature": true,
|
||||
"metadata": false,
|
||||
"original": true,
|
||||
"stash": false,
|
||||
"wait-min": 0
|
||||
},
|
||||
"exhentai":
|
||||
|
@ -38,12 +38,12 @@ class DeviantartExtractor(Extractor):
|
||||
self.api = DeviantartAPI(self)
|
||||
self.offset = 0
|
||||
self.flat = self.config("flat", True)
|
||||
self.stash = self.config("stash", False)
|
||||
self.extra = self.config("extra", False)
|
||||
self.original = self.config("original", True)
|
||||
self.user = match.group(1) or match.group(2)
|
||||
self.group = False
|
||||
|
||||
if self.stash:
|
||||
if self.extra:
|
||||
self.api.metadata = True
|
||||
|
||||
self.commit_journal = {
|
||||
@ -99,7 +99,7 @@ class DeviantartExtractor(Extractor):
|
||||
journal = self.api.deviation_content(deviation["deviationid"])
|
||||
yield self.commit_journal(deviation, journal)
|
||||
|
||||
if self.stash:
|
||||
if self.extra:
|
||||
for match in DeviantartStashExtractor.pattern.finditer(
|
||||
deviation.get("description", "")):
|
||||
deviation["_extractor"] = DeviantartStashExtractor
|
||||
@ -374,7 +374,7 @@ class DeviantartDeviationExtractor(DeviantartExtractor):
|
||||
# external URLs from description (#302)
|
||||
(("https://www.deviantart.com/uotapo/art/"
|
||||
"INANAKI-Memorial-Humane7-590297498"), {
|
||||
"options": (("stash", 1), ("original", 0)),
|
||||
"options": (("extra", 1), ("original", 0)),
|
||||
"pattern": r"https?://sta\.sh/\w+$",
|
||||
"range": "2-",
|
||||
"count": 4,
|
||||
|
@ -26,9 +26,10 @@ TRAVIS_SKIP = {
|
||||
|
||||
# temporary issues, etc.
|
||||
BROKEN = {
|
||||
"fallenangels",
|
||||
"mangapark",
|
||||
"mangoxo",
|
||||
"ngomik",
|
||||
"photobucket",
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user