From: Sergey M․ Date: Sun, 29 Nov 2015 11:03:33 +0000 (+0600) Subject: [spiegel] Fix extraction (Closes #7693) X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=commitdiff_plain;h=bf2c8c8f82ff54f9594673c48e531661a72dbdcd;p=youtube-dl [spiegel] Fix extraction (Closes #7693) --- 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.+?)\1', r'var\s+server\s*=\s*"(?P[^"]+)\"'], + webpage, 'server URL', group='url') xml_url = base_url + video_id + '.xml' idoc = self._download_xml(xml_url, video_id)