summary refs log tree commit diff
diff options
context:
space:
mode:
authorSergey M․ <dstftw@gmail.com>2015-07-17 23:36:58 +0600
committerSergey M․ <dstftw@gmail.com>2015-07-17 23:36:58 +0600
commita60cccbf9f76e7e42509bf1ed4e054643ecc348f (patch)
treeadb66741e306b8760be35b0642858b8b535bf5d7
parent3e72f5f10e8dbac71e267ce10e791251a54e61ab (diff)
downloadyoutube-dl-a60cccbf9f76e7e42509bf1ed4e054643ecc348f.tar.gz
youtube-dl-a60cccbf9f76e7e42509bf1ed4e054643ecc348f.tar.xz
youtube-dl-a60cccbf9f76e7e42509bf1ed4e054643ecc348f.zip
[crunchyroll] Use compat_urllib_parse_unquote
-rw-r--r--youtube_dl/extractor/crunchyroll.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/youtube_dl/extractor/crunchyroll.py b/youtube_dl/extractor/crunchyroll.py
index 73f1e22ef..d1b6d7366 100644
--- a/youtube_dl/extractor/crunchyroll.py
+++ b/youtube_dl/extractor/crunchyroll.py
@@ -12,6 +12,7 @@ from math import pow, sqrt, floor
 from .common import InfoExtractor
 from ..compat import (
     compat_urllib_parse,
+    compat_urllib_parse_unquote,
     compat_urllib_request,
 )
 from ..utils import (
@@ -254,7 +255,7 @@ Format: Layer, Start, End, Style, Name, MarginL, MarginR, MarginV, Effect, Text
             video_upload_date = unified_strdate(video_upload_date)
         video_uploader = self._html_search_regex(r'<div>\s*Publisher:(.+?)</div>', webpage, 'video_uploader', fatal=False, flags=re.DOTALL)
 
-        playerdata_url = compat_urllib_parse.unquote(self._html_search_regex(r'"config_url":"([^"]+)', webpage, 'playerdata_url'))
+        playerdata_url = compat_urllib_parse_unquote(self._html_search_regex(r'"config_url":"([^"]+)', webpage, 'playerdata_url'))
         playerdata_req = compat_urllib_request.Request(playerdata_url)
         playerdata_req.data = compat_urllib_parse.urlencode({'current_page': webpage_url})
         playerdata_req.add_header('Content-Type', 'application/x-www-form-urlencoded')