diff options
author | Sergey M․ <dstftw@gmail.com> | 2015-11-29 17:03:33 +0600 |
---|---|---|
committer | Sergey M․ <dstftw@gmail.com> | 2015-11-29 17:03:33 +0600 |
commit | bf2c8c8f82ff54f9594673c48e531661a72dbdcd (patch) | |
tree | 04a2adc16375449110196993ab9665be644ea830 /youtube_dl | |
parent | ef428960c9b3972586977446e82ec3872094cc1e (diff) |
[spiegel] Fix extraction (Closes #7693)
Diffstat (limited to 'youtube_dl')
-rw-r--r-- | youtube_dl/extractor/spiegel.py | 3 |
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) |