[theplatform] Fallback to hardcoded releaseUrl if not available
Fixes #6546. Not adding a test case as test_NBC has the same problem.
This commit is contained in:
parent
237c03c8ea
commit
28479149cc
1 changed files with 5 additions and 1 deletions
|
@ -108,7 +108,11 @@ class ThePlatformIE(InfoExtractor):
|
||||||
config_url = config_url.replace('swf/', 'config/')
|
config_url = config_url.replace('swf/', 'config/')
|
||||||
config_url = config_url.replace('onsite/', 'onsite/config/')
|
config_url = config_url.replace('onsite/', 'onsite/config/')
|
||||||
config = self._download_json(config_url, video_id, 'Downloading config')
|
config = self._download_json(config_url, video_id, 'Downloading config')
|
||||||
smil_url = config['releaseUrl'] + '&format=SMIL&formats=MPEG4&manifest=f4m'
|
if 'releaseUrl' in config:
|
||||||
|
release_url = config['releaseUrl']
|
||||||
|
else:
|
||||||
|
release_url = 'http://link.theplatform.com/s/%s?mbr=true' % path
|
||||||
|
smil_url = release_url + '&format=SMIL&formats=MPEG4&manifest=f4m'
|
||||||
else:
|
else:
|
||||||
smil_url = 'http://link.theplatform.com/s/%s/meta.smil?format=smil&mbr=true' % path
|
smil_url = 'http://link.theplatform.com/s/%s/meta.smil?format=smil&mbr=true' % path
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue