From d3c9af84fcd1614aa920e669e1c951a6d94c373a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sergey=20M=E2=80=A4?= Date: Wed, 1 Oct 2014 20:53:58 +0700 Subject: [PATCH] [spankwire] Fix extraction --- youtube_dl/extractor/spankwire.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/youtube_dl/extractor/spankwire.py b/youtube_dl/extractor/spankwire.py index 21491027a..94602e89e 100644 --- a/youtube_dl/extractor/spankwire.py +++ b/youtube_dl/extractor/spankwire.py @@ -45,7 +45,7 @@ class SpankwireIE(InfoExtractor): r'([^<]+)<', webpage, 'description', fatal=False) thumbnail = self._html_search_regex( - r'playerData\.screenShot\s*=\s*"([^"]+)"', + r'playerData\.screenShot\s*=\s*["\']([^"\']+)["\']', webpage, 'thumbnail', fatal=False) uploader = self._html_search_regex( @@ -67,7 +67,7 @@ class SpankwireIE(InfoExtractor): video_urls = list(map( compat_urllib_parse.unquote, - re.findall(r'playerData\.cdnPath[0-9]{3,}\s*=\s*"([^"]+)', webpage))) + re.findall(r'playerData\.cdnPath[0-9]{3,}\s*=\s*["\']([^"\']+)["\']', webpage))) if webpage.find('flashvars\.encrypted = "true"') != -1: password = self._html_search_regex( r'flashvars\.video_title = "([^"]+)',