[deviantart] update 'watch' URL pattern (#794)

This commit is contained in:
Mike Fährmann
2021-03-21 22:48:06 +01:00
parent 2846235669
commit 03c20d8c8e

View File

@@ -876,8 +876,12 @@ class DeviantartWatchExtractor(DeviantartExtractor):
"""Extractor for Deviations from watched users"""
subcategory = "watch"
directory_fmt = ("{category}", "{author[username]}")
pattern = r"(?:https?://)?(?:www\.)?deviantart\.com/notifications(/)watch/"
test = ("https://www.deviantart.com/notifications/watch/",)
pattern = (r"(?:https?://)?(?:www\.)?deviantart\.com"
r"(/)(?:watch/deviations|notifications/watch)")
test = (
("https://www.deviantart.com/watch/deviations"),
("https://www.deviantart.com/notifications/watch"),
)
def deviations(self):
return self.api.browse_deviantsyouwatch()