aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl
diff options
context:
space:
mode:
authorSergey M․ <dstftw@gmail.com>2015-11-29 17:03:33 +0600
committerSergey M․ <dstftw@gmail.com>2015-11-29 17:03:33 +0600
commitbf2c8c8f82ff54f9594673c48e531661a72dbdcd (patch)
tree04a2adc16375449110196993ab9665be644ea830 /youtube_dl
parentef428960c9b3972586977446e82ec3872094cc1e (diff)
[spiegel] Fix extraction (Closes #7693)
Diffstat (limited to 'youtube_dl')
-rw-r--r--youtube_dl/extractor/spiegel.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/youtube_dl/extractor/spiegel.py b/youtube_dl/extractor/spiegel.py
index 5bd3c0087..39a7aaf9d 100644
--- a/youtube_dl/extractor/spiegel.py
+++ b/youtube_dl/extractor/spiegel.py
@@ -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)