mirror of
https://github.com/ytdl-org/youtube-dl.git
synced 2024-11-25 19:52:11 +00:00
[theplatform] Handle explicitly specified SMIL (#7385)
This commit is contained in:
parent
b328295910
commit
ad1f4e7902
1 changed files with 9 additions and 0 deletions
|
@ -193,6 +193,15 @@ class ThePlatformIE(ThePlatformBaseIE):
|
||||||
|
|
||||||
if smuggled_data.get('force_smil_url', False):
|
if smuggled_data.get('force_smil_url', False):
|
||||||
smil_url = url
|
smil_url = url
|
||||||
|
# Explicitly specified SMIL (see https://github.com/rg3/youtube-dl/issues/7385)
|
||||||
|
elif '/guid/' in url:
|
||||||
|
webpage = self._download_webpage(url, video_id)
|
||||||
|
smil_url = self._search_regex(
|
||||||
|
r'<link[^>]+href=(["\'])(?P<url>.+?)\1[^>]+type=["\']application/smil\+xml',
|
||||||
|
webpage, 'smil url', group='url')
|
||||||
|
path = self._search_regex(
|
||||||
|
r'link\.theplatform\.com/s/((?:[^/?#&]+/)+[^/?#&]+)', smil_url, 'path')
|
||||||
|
smil_url += '?' if '?' not in smil_url else '&' + 'formats=m3u,mpeg4&format=SMIL'
|
||||||
elif mobj.group('config'):
|
elif mobj.group('config'):
|
||||||
config_url = url + '&form=json'
|
config_url = url + '&form=json'
|
||||||
config_url = config_url.replace('swf/', 'config/')
|
config_url = config_url.replace('swf/', 'config/')
|
||||||
|
|
Loading…
Reference in a new issue