aboutsummaryrefslogtreecommitdiffstats
path: root/yt_dlp/extractor/common.py
diff options
context:
space:
mode:
authorMinePlayersPE <mineplayerspealt@gmail.com>2021-12-25 05:28:57 +0700
committerGitHub <noreply@github.com>2021-12-25 03:58:57 +0530
commitd43de6821cdc30524d866578a5af86ce4ff76fb7 (patch)
treea37390aa5bcab994a19f93a3a107dc07da6f4366 /yt_dlp/extractor/common.py
parent070f6a85ea8d9c8c75dd77b7c2415bb8c78ab082 (diff)
downloadhypervideo-pre-d43de6821cdc30524d866578a5af86ce4ff76fb7.tar.lz
hypervideo-pre-d43de6821cdc30524d866578a5af86ce4ff76fb7.tar.xz
hypervideo-pre-d43de6821cdc30524d866578a5af86ce4ff76fb7.zip
[GameJolt] Add extractors (#2036)
Authored by: MinePlayersPE
Diffstat (limited to 'yt_dlp/extractor/common.py')
-rw-r--r--yt_dlp/extractor/common.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/yt_dlp/extractor/common.py b/yt_dlp/extractor/common.py
index 6cd2551bf..3260399cb 100644
--- a/yt_dlp/extractor/common.py
+++ b/yt_dlp/extractor/common.py
@@ -3663,7 +3663,7 @@ class InfoExtractor(object):
else 'public' if all_known
else None)
- def _configuration_arg(self, key, default=NO_DEFAULT, casesense=False):
+ def _configuration_arg(self, key, default=NO_DEFAULT, *, ie_key=None, casesense=False):
'''
@returns A list of values for the extractor argument given by "key"
or "default" if no such key is present
@@ -3671,7 +3671,7 @@ class InfoExtractor(object):
@param casesense When false, the values are converted to lower case
'''
val = traverse_obj(
- self._downloader.params, ('extractor_args', self.ie_key().lower(), key))
+ self._downloader.params, ('extractor_args', (ie_key or self.ie_key()).lower(), key))
if val is None:
return [] if default is NO_DEFAULT else default
return list(val) if casesense else [x.lower() for x in val]