[deviantart] update 'watch' URL pattern (#794)
This commit is contained in:
@@ -876,8 +876,12 @@ class DeviantartWatchExtractor(DeviantartExtractor):
|
|||||||
"""Extractor for Deviations from watched users"""
|
"""Extractor for Deviations from watched users"""
|
||||||
subcategory = "watch"
|
subcategory = "watch"
|
||||||
directory_fmt = ("{category}", "{author[username]}")
|
directory_fmt = ("{category}", "{author[username]}")
|
||||||
pattern = r"(?:https?://)?(?:www\.)?deviantart\.com/notifications(/)watch/"
|
pattern = (r"(?:https?://)?(?:www\.)?deviantart\.com"
|
||||||
test = ("https://www.deviantart.com/notifications/watch/",)
|
r"(/)(?:watch/deviations|notifications/watch)")
|
||||||
|
test = (
|
||||||
|
("https://www.deviantart.com/watch/deviations"),
|
||||||
|
("https://www.deviantart.com/notifications/watch"),
|
||||||
|
)
|
||||||
|
|
||||||
def deviations(self):
|
def deviations(self):
|
||||||
return self.api.browse_deviantsyouwatch()
|
return self.api.browse_deviantsyouwatch()
|
||||||
|
|||||||
Reference in New Issue
Block a user