From 139fb841086d00ad3e57942d893b31753a0f577a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mike=20F=C3=A4hrmann?= Date: Mon, 22 Mar 2021 22:14:21 +0100 Subject: [PATCH] [deviantart] fix username for 'watch' results (#794) before it'd use "/" as username --- gallery_dl/extractor/deviantart.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/gallery_dl/extractor/deviantart.py b/gallery_dl/extractor/deviantart.py index 2299129c..83fb8be7 100644 --- a/gallery_dl/extractor/deviantart.py +++ b/gallery_dl/extractor/deviantart.py @@ -731,9 +731,8 @@ class DeviantartPopularExtractor(DeviantartExtractor): class DeviantartWatchExtractor(DeviantartExtractor): """Extractor for Deviations from watched users""" subcategory = "watch" - directory_fmt = ("{category}", "{author[username]}") pattern = (r"(?:https?://)?(?:www\.)?deviantart\.com" - r"(/)(?:watch/deviations|notifications/watch)") + r"/(?:watch/deviations|notifications/watch)()()") test = ( ("https://www.deviantart.com/watch/deviations"), ("https://www.deviantart.com/notifications/watch"), @@ -746,8 +745,7 @@ class DeviantartWatchExtractor(DeviantartExtractor): class DeviantartWatchPostsExtractor(DeviantartExtractor): """Extractor for Posts from watched users""" subcategory = "watch-posts" - directory_fmt = ("{category}", "{author[username]}") - pattern = r"(?:https?://)?(?:www\.)?deviantart\.com(/)watch/posts" + pattern = r"(?:https?://)?(?:www\.)?deviantart\.com/watch/posts()()" test = ("https://www.deviantart.com/watch/posts",) def deviations(self):