[imgur] document 'client-id' option (#3937)

pull/3963/head
Mike Fährmann 1 year ago
parent 202f5d86a7
commit aaf58a1259
No known key found for this signature in database
GPG Key ID: 5680CA389D365A88

@ -1733,6 +1733,14 @@ Description
but is most likely going to fail with ``403 Forbidden`` errors.
extractor.imgur.client-id
-------------------------
Type
``string``
Description
Custom Client ID value for API requests.
extractor.imgur.mp4
-------------------
Type

@ -1,6 +1,6 @@
# -*- coding: utf-8 -*-
# Copyright 2015-2022 Mike Fährmann
# Copyright 2015-2023 Mike Fährmann
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 2 as
@ -347,8 +347,8 @@ class ImgurAPI():
def __init__(self, extractor):
self.extractor = extractor
self.headers = {
"Authorization": "Client-ID " + extractor.config(
"client-id", "546c25a59c58ad7"),
"Authorization": "Client-ID " + (
extractor.config("client-id") or "546c25a59c58ad7"),
}
def account_favorites(self, account):

Loading…
Cancel
Save