[spiegel] Fix extraction (Closes #7693)
authorSergey M․ <dstftw@gmail.com>
Sun, 29 Nov 2015 11:03:33 +0000 (17:03 +0600)
committerSergey M․ <dstftw@gmail.com>
Sun, 29 Nov 2015 11:03:33 +0000 (17:03 +0600)
youtube_dl/extractor/spiegel.py

index 5bd3c00875234c5efcf68772178b672261cc2a9f..39a7aaf9d630203dc1796b3b5621aad3c433f575 100644 (file)
@@ -58,7 +58,8 @@ class SpiegelIE(InfoExtractor):
         description = self._html_search_meta('description', webpage, 'description')
 
         base_url = self._search_regex(
-            r'var\s+server\s*=\s*"([^"]+)\"', webpage, 'server URL')
+            [r'server\s*:\s*(["\'])(?P<url>.+?)\1', r'var\s+server\s*=\s*"(?P<url>[^"]+)\"'],
+            webpage, 'server URL', group='url')
 
         xml_url = base_url + video_id + '.xml'
         idoc = self._download_xml(xml_url, video_id)