X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=youtube_dl%2Fextractor%2Fspiegeltv.py;h=98cf92d89a1151edfd11b8f15a86eeaa6a83178d;hb=27ca82ebc66c91359173e45b25d992118511e330;hp=06838f78d91d607ce0ee48327e9450a3ea26eca3;hpb=89c15fe0b3044d39caf1c97df523acc33107f399;p=youtube-dl diff --git a/youtube_dl/extractor/spiegeltv.py b/youtube_dl/extractor/spiegeltv.py index 06838f78d..98cf92d89 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[\-a-z0-9]+)' + _VALID_URL = r'https?://(?:www\.)?spiegel\.tv/(?:#/)?filme/(?P[\-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'(.*?)', webpage, 'title') @@ -72,4 +77,4 @@ class SpiegeltvIE(InfoExtractor): 'description': description, 'duration': duration, 'thumbnails': thumbnails - } \ No newline at end of file + }