[mangadex] update parameter handling for API requests

- move common parameters into '_pagination()'
- add 'ratings' (#1908) and 'api-parameters' options
This commit is contained in:
Mike Fährmann
2021-10-05 19:46:48 +02:00
parent cd66c3c415
commit d93b5474c3
2 changed files with 39 additions and 11 deletions

View File

@@ -1403,6 +1403,19 @@ Description
The server to use for API requests.
extractor.mangadex.api-parameters
---------------------------------
Type
``object``
Example
``{"order[updatedAt]": "desc"}``
Description
Additional query parameters to send when fetching manga chapters.
(See `/manga/{id}/feed <https://api.mangadex.org/docs.html#operation/get-manga-id-feed>`_
and `/user/follows/manga/feed <https://api.mangadex.org/docs.html#operation/get-user-follows-manga-feed>`_)
extractor.mangadex.lang
-----------------------
Type
@@ -1424,6 +1437,16 @@ Description
Provide ``artist``, ``author``, and ``group`` metadata fields.
extractor.mangadex.ratings
--------------------------
Type
``list`` of ``strings``
Default
``["safe", "suggestive", "erotica", "pornographic"]``
Description
List of acceptable content ratings for returned chapters.
extractor.mastodon.reblogs
--------------------------
Type