Skip to content

Commit

Permalink
[deviantart] rename 'watch' option to 'auto-watch'
Browse files Browse the repository at this point in the history
(#1466, #1757)

Similar reason as in e05a96d.
'watch' is already used by the WatchExtractor class.
  • Loading branch information
mikf committed Aug 29, 2021
1 parent e75f2de commit 96fec14
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions docs/configuration.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1053,8 +1053,8 @@ Description
or whenever your `cache file <cache.file_>`__ is deleted or cleared.


extractor.deviantart.watch
--------------------------
extractor.deviantart.auto-watch
-------------------------------
Type
``bool``
Default
Expand Down
2 changes: 1 addition & 1 deletion gallery_dl/extractor/deviantart.py
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,7 @@ def _fetch_premium(self, deviation):
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(
Expand Down
2 changes: 1 addition & 1 deletion gallery_dl/extractor/oauth.py
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ def items(self):
"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,
)

Expand Down

0 comments on commit 96fec14

Please sign in to comment.