[deviantart] improve public-private token switching

- rename option to `prefer-public`
- now also works for galleries with less than 24 items
This commit is contained in:
Mike Fährmann
2018-07-25 12:52:36 +02:00
parent 886d662582
commit 212130b048
4 changed files with 28 additions and 26 deletions

View File

@@ -333,6 +333,23 @@ Description Download full-sized original images if available.
=========== =====
extractor.deviantart.prefer-public
----------------------------------
=========== =====
Type ``bool``
Default ``false``
Description Call API endpoints with a public access token first
and only switch to a private access token if deviations are missing
(i.e. they are only visible to logged in users).
This option only has an effect when using a `refresh token`__
and tries to minimize the amount of API calls with private access
tokens, as they have a much lower rate limit than public ones.
__ extractor.deviantart.refresh-token_
=========== =====
extractor.deviantart.refresh-token
----------------------------------
=========== =====
@@ -346,27 +363,10 @@ Description The ``refresh_token`` value you get from linking your
=========== =====
extractor.deviantart.try-public
-------------------------------
=========== =====
Type ``bool``
Default ``false``
Description Try accessing a user's deviations with a public access token first
and only switch to a private access token if deviations are
detected as missing (i.e. they are only visible to logged in users).
This option only has an effect when using a `refresh token`__
and tries to minimize the amount of API calls with private access
tokens, as they have a much lower rate limit than public ones.
__ extractor.deviantart.refresh-token_
=========== =====
extractor.deviantart.wait-min
-----------------------------
=========== =====
Type ``int``
Type ``integer``
Default ``0``
Description Minimum wait time in seconds before API requests.