[deviantart:gallery] match URLs with query parameters (#8514)
This commit is contained in:
@@ -888,7 +888,7 @@ class DeviantartGalleryExtractor(DeviantartExtractor):
|
|||||||
subcategory = "gallery"
|
subcategory = "gallery"
|
||||||
archive_fmt = "g_{_username}_{index}.{extension}"
|
archive_fmt = "g_{_username}_{index}.{extension}"
|
||||||
pattern = (rf"{BASE_PATTERN}/gallery"
|
pattern = (rf"{BASE_PATTERN}/gallery"
|
||||||
r"(?:/all|/recommended-for-you|/?\?catpath=)?/?$")
|
r"(?:/all|/recommended-for-you)?/?(\?(?!q=).*)?$")
|
||||||
example = "https://www.deviantart.com/USER/gallery/"
|
example = "https://www.deviantart.com/USER/gallery/"
|
||||||
|
|
||||||
def deviations(self):
|
def deviations(self):
|
||||||
|
|||||||
@@ -205,6 +205,11 @@ __tests__ = (
|
|||||||
"#class" : deviantart.DeviantartGalleryExtractor,
|
"#class" : deviantart.DeviantartGalleryExtractor,
|
||||||
},
|
},
|
||||||
|
|
||||||
|
{
|
||||||
|
"#url" : "https://www.deviantart.com/yinnyyany/gallery/all?order=newest",
|
||||||
|
"#class" : deviantart.DeviantartGalleryExtractor,
|
||||||
|
},
|
||||||
|
|
||||||
{
|
{
|
||||||
"#url" : "https://deviantart.com/shimoda7/avatar",
|
"#url" : "https://deviantart.com/shimoda7/avatar",
|
||||||
"#category": ("", "deviantart", "avatar"),
|
"#category": ("", "deviantart", "avatar"),
|
||||||
|
|||||||
Reference in New Issue
Block a user