Browse Source

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

master
cdarlint 5 years ago
committed by Sergey M
parent
commit
3fdf573148
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      youtube_dl/extractor/safari.py

+ 2
- 1
youtube_dl/extractor/safari.py View File

@ -165,7 +165,8 @@ class SafariIE(SafariBaseIE):
kaltura_session = self._download_json( kaltura_session = self._download_json(
'%s/player/kaltura_session/?reference_id=%s' % (self._API_BASE, reference_id), '%s/player/kaltura_session/?reference_id=%s' % (self._API_BASE, reference_id),
video_id, 'Downloading kaltura session JSON', 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: if kaltura_session:
session = kaltura_session.get('session') session = kaltura_session.get('session')
if session: if session:


Loading…
Cancel
Save