[deviantart] update 'watch' URL pattern (#794)
This commit is contained in:
parent
2846235669
commit
03c20d8c8e
@ -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()
|
||||
|
Loading…
x
Reference in New Issue
Block a user