1
1
mirror of https://github.com/ytdl-org/youtube-dl synced 2024-11-11 07:19:39 +01:00

[safari] Fix kaltura session extraction (closes #23679) (#23670)

This commit is contained in:
cdarlint 2020-01-11 02:34:26 +08:00 committed by Sergey M
parent d4e0cd69ef
commit 3fdf573148

View File

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