mirror of
https://github.com/mikf/gallery-dl.git
synced 2024-11-22 18:53:21 +01:00
[deviantart] set 'is_original' for intermediary URLs to 'false'
This commit is contained in:
parent
01bb75f6cb
commit
2a60645095
@ -143,6 +143,7 @@ class DeviantartExtractor(Extractor):
|
|||||||
r"(/f/[^/]+/[^/]+)/v\d+/.*",
|
r"(/f/[^/]+/[^/]+)/v\d+/.*",
|
||||||
r"/intermediary\1", content["src"], 1)
|
r"/intermediary\1", content["src"], 1)
|
||||||
if count:
|
if count:
|
||||||
|
deviation["is_original"] = False
|
||||||
deviation["_fallback"] = (content["src"],)
|
deviation["_fallback"] = (content["src"],)
|
||||||
content["src"] = intermediary
|
content["src"] = intermediary
|
||||||
if self.quality:
|
if self.quality:
|
||||||
|
@ -568,7 +568,10 @@ __tests__ = (
|
|||||||
"#comment" : "wixmp URL rewrite /intermediary/",
|
"#comment" : "wixmp URL rewrite /intermediary/",
|
||||||
"#category": ("", "deviantart", "deviation"),
|
"#category": ("", "deviantart", "deviation"),
|
||||||
"#class" : deviantart.DeviantartDeviationExtractor,
|
"#class" : deviantart.DeviantartDeviationExtractor,
|
||||||
"#pattern" : r"https://images-wixmp-\w+\.wixmp\.com/intermediary/f/[^/]+/[^.]+\.jpg",
|
"#urls" : "https://images-wixmp-ed30a86b8c4ca887773594c2.wixmp.com/intermediary/f/4deb0f1a-cdef-444e-b194-c8d6b3f7e933/dd1xca2-7f835e62-6fd3-4b99-92c7-2bfd4e1b296f.jpg",
|
||||||
|
|
||||||
|
"is_downloadable": False,
|
||||||
|
"is_original" : False,
|
||||||
},
|
},
|
||||||
|
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user