diff options
author | cdarlint <cdarlint@users.noreply.github.com> | 2020-01-11 02:34:26 +0800 |
---|---|---|
committer | Sergey M <dstftw@gmail.com> | 2020-01-11 01:34:26 +0700 |
commit | 3fdf573148abaa4e3b0dc9a8ae7ee7d1bdab2289 (patch) | |
tree | 12bddd4c5dc91336c2b3839b779ea1f1d50d433f /youtube_dl/extractor | |
parent | d4e0cd69efe6240a188eac9cce296b57b06661ca (diff) | |
download | youtube-dl-3fdf573148abaa4e3b0dc9a8ae7ee7d1bdab2289.tar.xz |
[safari] Fix kaltura session extraction (closes #23679) (#23670)
Diffstat (limited to 'youtube_dl/extractor')
-rw-r--r-- | youtube_dl/extractor/safari.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/youtube_dl/extractor/safari.py b/youtube_dl/extractor/safari.py index bd9ee1647..4942437c7 100644 --- a/youtube_dl/extractor/safari.py +++ b/youtube_dl/extractor/safari.py @@ -165,7 +165,8 @@ class SafariIE(SafariBaseIE): kaltura_session = self._download_json( '%s/player/kaltura_session/?reference_id=%s' % (self._API_BASE, reference_id), video_id, 'Downloading kaltura session JSON', - 'Unable to download kaltura session JSON', fatal=False) + 'Unable to download kaltura session JSON', fatal=False, + headers={'Accept': 'application/json'}) if kaltura_session: session = kaltura_session.get('session') if session: |