[spankwire] Fix extraction
authorSergey M․ <dstftw@gmail.com>
Wed, 1 Oct 2014 13:53:58 +0000 (20:53 +0700)
committerSergey M․ <dstftw@gmail.com>
Wed, 1 Oct 2014 13:53:58 +0000 (20:53 +0700)
youtube_dl/extractor/spankwire.py

index 21491027ab2119a966d3ccca4b127c55c7de4644..94602e89e56549243ed38ecb107ef842cd8ebd46 100644 (file)
@@ -45,7 +45,7 @@ class SpankwireIE(InfoExtractor):
             r'<div\s+id="descriptionContent">([^<]+)<',
             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 = "([^"]+)',