[deviantart:gallery] match URLs with query parameters (#8514)

This commit is contained in:
Mike Fährmann
2025-11-09 11:33:11 +01:00
parent dfe66e82a8
commit aba68f8643
2 changed files with 6 additions and 1 deletions

View File

@@ -888,7 +888,7 @@ class DeviantartGalleryExtractor(DeviantartExtractor):
subcategory = "gallery"
archive_fmt = "g_{_username}_{index}.{extension}"
pattern = (rf"{BASE_PATTERN}/gallery"
r"(?:/all|/recommended-for-you|/?\?catpath=)?/?$")
r"(?:/all|/recommended-for-you)?/?(\?(?!q=).*)?$")
example = "https://www.deviantart.com/USER/gallery/"
def deviations(self):

View File

@@ -205,6 +205,11 @@ __tests__ = (
"#class" : deviantart.DeviantartGalleryExtractor,
},
{
"#url" : "https://www.deviantart.com/yinnyyany/gallery/all?order=newest",
"#class" : deviantart.DeviantartGalleryExtractor,
},
{
"#url" : "https://deviantart.com/shimoda7/avatar",
"#category": ("", "deviantart", "avatar"),