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

pull/1405/head
Mike Fährmann 4 years ago
parent 2846235669
commit 03c20d8c8e
No known key found for this signature in database
GPG Key ID: 5680CA389D365A88

@ -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()

Loading…
Cancel
Save