mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-12-25 21:12:34 +01:00
[theplatform] Rework on <switch> inside <par>
This commit is contained in:
parent
bd7a6478a2
commit
a662163fd5
@ -139,7 +139,9 @@ class ThePlatformIE(InfoExtractor):
|
||||
formats = self._extract_f4m_formats(f4m_url, video_id)
|
||||
else:
|
||||
formats = []
|
||||
switch = body.find(_x('.//smil:switch'))
|
||||
switch = body.find(_x('smil:switch'))
|
||||
if switch is None:
|
||||
switch = body.find(_x('smil:par//smil:switch'))
|
||||
if switch is not None:
|
||||
base_url = head.find(_x('smil:meta')).attrib['base']
|
||||
for f in switch.findall(_x('smil:video')):
|
||||
|
Loading…
Reference in New Issue
Block a user