1
0
mirror of https://github.com/mikf/gallery-dl.git synced 2024-11-22 02:32:33 +01:00

[deviantart] set 'is_original' for intermediary URLs to 'false'

This commit is contained in:
Mike Fährmann 2023-12-22 14:49:10 +01:00
parent 01bb75f6cb
commit 2a60645095
No known key found for this signature in database
GPG Key ID: 5680CA389D365A88
2 changed files with 5 additions and 1 deletions

View File

@ -143,6 +143,7 @@ class DeviantartExtractor(Extractor):
r"(/f/[^/]+/[^/]+)/v\d+/.*",
r"/intermediary\1", content["src"], 1)
if count:
deviation["is_original"] = False
deviation["_fallback"] = (content["src"],)
content["src"] = intermediary
if self.quality:

View File

@ -568,7 +568,10 @@ __tests__ = (
"#comment" : "wixmp URL rewrite /intermediary/",
"#category": ("", "deviantart", "deviation"),
"#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,
},
{