From 96fec14ef7a3d2297aaee860d34b5d32150573f6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mike=20F=C3=A4hrmann?= Date: Sun, 29 Aug 2021 21:06:48 +0200 Subject: [PATCH] [deviantart] rename 'watch' option to 'auto-watch' (#1466, #1757) Similar reason as in e05a96db. 'watch' is already used by the WatchExtractor class. --- docs/configuration.rst | 4 ++-- gallery_dl/extractor/deviantart.py | 2 +- gallery_dl/extractor/oauth.py | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/configuration.rst b/docs/configuration.rst index 39b024ed..49205791 100644 --- a/docs/configuration.rst +++ b/docs/configuration.rst @@ -1053,8 +1053,8 @@ Description or whenever your `cache file `__ is deleted or cleared. -extractor.deviantart.watch --------------------------- +extractor.deviantart.auto-watch +------------------------------- Type ``bool`` Default diff --git a/gallery_dl/extractor/deviantart.py b/gallery_dl/extractor/deviantart.py index a6b9feb1..21270d95 100644 --- a/gallery_dl/extractor/deviantart.py +++ b/gallery_dl/extractor/deviantart.py @@ -326,7 +326,7 @@ class DeviantartExtractor(Extractor): folder = dev["premium_folder_data"] if not has_access and folder["type"] == "watchers" and \ - self.config("watch"): + self.config("auto-watch"): if self.api.user_friends_watch(username): has_access = True self.log.info( diff --git a/gallery_dl/extractor/oauth.py b/gallery_dl/extractor/oauth.py index bac92a1a..4dc1e432 100644 --- a/gallery_dl/extractor/oauth.py +++ b/gallery_dl/extractor/oauth.py @@ -220,7 +220,7 @@ class OAuthDeviantart(OAuthBase): "client-secret", deviantart.DeviantartOAuthAPI.CLIENT_SECRET), "https://www.deviantart.com/oauth2/authorize", "https://www.deviantart.com/oauth2/token", - scope="browse", + scope="browse user.manage", cache=deviantart._refresh_token_cache, )