aboutsummaryrefslogtreecommitdiffstats
path: root/youtube_dl/extractor/spankwire.py
diff options
context:
space:
mode:
authorSergey M․ <dstftw@gmail.com>2014-10-01 20:53:58 +0700
committerSergey M․ <dstftw@gmail.com>2014-10-01 20:53:58 +0700
commitd3c9af84fcd1614aa920e669e1c951a6d94c373a (patch)
tree36ebbb14da6f9713975b8df23ad4e9dc6d91e082 /youtube_dl/extractor/spankwire.py
parent59d206ca2d0aa77b0f739d7262e113722d5eee16 (diff)
downloadyoutube-dl-d3c9af84fcd1614aa920e669e1c951a6d94c373a.zip
youtube-dl-d3c9af84fcd1614aa920e669e1c951a6d94c373a.tar.gz
youtube-dl-d3c9af84fcd1614aa920e669e1c951a6d94c373a.tar.bz2
[spankwire] Fix extraction
Diffstat (limited to 'youtube_dl/extractor/spankwire.py')
-rw-r--r--youtube_dl/extractor/spankwire.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/youtube_dl/extractor/spankwire.py b/youtube_dl/extractor/spankwire.py
index 2149102..94602e8 100644
--- a/youtube_dl/extractor/spankwire.py
+++ b/youtube_dl/extractor/spankwire.py
@@ -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 = "([^"]+)',