[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:
@@ -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
|
||||
|
||||
@@ -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(
|
||||
|
||||
@@ -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,
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user