1
0
mirror of https://github.com/mikf/gallery-dl.git synced 2024-11-22 10:42:34 +01:00

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

This commit is contained in:
Mike Fährmann 2023-04-21 14:22:26 +02:00
parent 202f5d86a7
commit aaf58a1259
No known key found for this signature in database
GPG Key ID: 5680CA389D365A88
2 changed files with 11 additions and 3 deletions

View File

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

View File

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