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:
parent
202f5d86a7
commit
aaf58a1259
@ -1733,6 +1733,14 @@ Description
|
|||||||
but is most likely going to fail with ``403 Forbidden`` errors.
|
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
|
extractor.imgur.mp4
|
||||||
-------------------
|
-------------------
|
||||||
Type
|
Type
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
# -*- coding: utf-8 -*-
|
# -*- 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
|
# 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
|
# it under the terms of the GNU General Public License version 2 as
|
||||||
@ -347,8 +347,8 @@ class ImgurAPI():
|
|||||||
def __init__(self, extractor):
|
def __init__(self, extractor):
|
||||||
self.extractor = extractor
|
self.extractor = extractor
|
||||||
self.headers = {
|
self.headers = {
|
||||||
"Authorization": "Client-ID " + extractor.config(
|
"Authorization": "Client-ID " + (
|
||||||
"client-id", "546c25a59c58ad7"),
|
extractor.config("client-id") or "546c25a59c58ad7"),
|
||||||
}
|
}
|
||||||
|
|
||||||
def account_favorites(self, account):
|
def account_favorites(self, account):
|
||||||
|
Loading…
Reference in New Issue
Block a user