summary refs log tree commit diff
diff options
context:
space:
mode:
authorPhilipp Hagemeister <phihag@phihag.de>2014-11-16 00:40:09 +0100
committerPhilipp Hagemeister <phihag@phihag.de>2014-11-16 00:40:09 +0100
commit939fe70de064130330b137da86a11c1f7a78af24 (patch)
tree109304f7c8d37c0b10d4006653839a78d73358b0
parent89c15fe0b3044d39caf1c97df523acc33107f399 (diff)
downloadyoutube-dl-939fe70de064130330b137da86a11c1f7a78af24.tar.gz
youtube-dl-939fe70de064130330b137da86a11c1f7a78af24.tar.xz
youtube-dl-939fe70de064130330b137da86a11c1f7a78af24.zip
[spiegeltv] Match hash-style URLs (Closes #4210)
-rw-r--r--youtube_dl/extractor/spiegeltv.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/youtube_dl/extractor/spiegeltv.py b/youtube_dl/extractor/spiegeltv.py
index 06838f78d..ef5e7c08b 100644
--- a/youtube_dl/extractor/spiegeltv.py
+++ b/youtube_dl/extractor/spiegeltv.py
@@ -6,7 +6,7 @@ from ..utils import float_or_none
 
 
 class SpiegeltvIE(InfoExtractor):
-    _VALID_URL = r'https?://(?:www\.)?spiegel\.tv/filme/(?P<id>[\-a-z0-9]+)'
+    _VALID_URL = r'https?://(?:www\.)?spiegel\.tv/(?:#/)?filme/(?P<id>[\-a-z0-9]+)'
     _TESTS = [{
         'url': 'http://www.spiegel.tv/filme/flug-mh370/',
         'info_dict': {
@@ -20,9 +20,14 @@ class SpiegeltvIE(InfoExtractor):
             # rtmp download
             'skip_download': True,
         }
+    }, {
+        'url': 'http://www.spiegel.tv/#/filme/alleskino-die-wahrheit-ueber-maenner/',
+        'only_matching': True,
     }]
 
     def _real_extract(self, url):
+        if '/#/' in url:
+            url = url.replace('/#/', '/')
         video_id = self._match_id(url)
         webpage = self._download_webpage(url, video_id)
         title = self._html_search_regex(r'<h1.*?>(.*?)</h1>', webpage, 'title')