mirror of
https://codeberg.org/polarisfm/youtube-dl.git
synced 2024-12-28 02:26:49 +00:00
Merge branch 'master' of github.com:rg3/youtube-dl
This commit is contained in:
commit
2db772b9ea
1 changed files with 4 additions and 2 deletions
|
@ -70,10 +70,12 @@ class SportDeutschlandIE(InfoExtractor):
|
||||||
|
|
||||||
smil_doc = self._download_xml(
|
smil_doc = self._download_xml(
|
||||||
smil_url, video_id, note='Downloading SMIL metadata')
|
smil_url, video_id, note='Downloading SMIL metadata')
|
||||||
base_url = smil_doc.find('./head/meta').attrib['base']
|
base_url_el = smil_doc.find('./head/meta')
|
||||||
|
if base_url_el:
|
||||||
|
base_url = base_url_el.attrib['base']
|
||||||
formats.extend([{
|
formats.extend([{
|
||||||
'format_id': 'rmtp',
|
'format_id': 'rmtp',
|
||||||
'url': base_url,
|
'url': base_url if base_url_el else n.attrib['src'],
|
||||||
'play_path': n.attrib['src'],
|
'play_path': n.attrib['src'],
|
||||||
'ext': 'flv',
|
'ext': 'flv',
|
||||||
'preference': -100,
|
'preference': -100,
|
||||||
|
|
Loading…
Reference in a new issue