aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/extractor
diff options
context:
space:
mode:
authorremitamine <remitamine@gmail.com>2015-12-27 15:03:13 +0100
committerremitamine <remitamine@gmail.com>2015-12-27 15:03:13 +0100
commit2db772b9eadb7ef148ff5fd2c9b061d61b07d8d9 (patch)
treeb68c5f0497b66e12c77ade54271fb0e09b248029 /youtube_dl/extractor
parent7b81316508d676393d89a99b42fc15e3dcfeab73 (diff)
parent05358deecaf7d3fc5d2737728fbeadf51b15d7c0 (diff)
Merge branch 'master' of github.com:rg3/youtube-dl
Diffstat (limited to 'youtube_dl/extractor')
-rw-r--r--youtube_dl/extractor/sportdeutschland.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/youtube_dl/extractor/sportdeutschland.py b/youtube_dl/extractor/sportdeutschland.py
index ebb75f059..a9927f6e2 100644
--- a/youtube_dl/extractor/sportdeutschland.py
+++ b/youtube_dl/extractor/sportdeutschland.py
@@ -70,10 +70,12 @@ class SportDeutschlandIE(InfoExtractor):
smil_doc = self._download_xml(
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([{
'format_id': 'rmtp',
- 'url': base_url,
+ 'url': base_url if base_url_el else n.attrib['src'],
'play_path': n.attrib['src'],
'ext': 'flv',
'preference': -100,