[deviantart] rename 'watch' option to 'auto-watch'

(#1466, #1757)

Similar reason as in e05a96db.
'watch' is already used by the WatchExtractor class.
This commit is contained in:
Mike Fährmann
2021-08-29 21:06:48 +02:00
parent e75f2de9da
commit 96fec14ef7
3 changed files with 4 additions and 4 deletions

View File

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

View File

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

View File

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