瀏覽代碼

[veehd] Use compat_urllib_parse_unquote

Sergey M․ 10 年之前
父節點
當前提交
6b19647d57
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2 1
      youtube_dl/extractor/veehd.py

+ 2 - 1
youtube_dl/extractor/veehd.py

@@ -5,6 +5,7 @@ import json
 
 
 from .common import InfoExtractor
 from .common import InfoExtractor
 from ..compat import (
 from ..compat import (
+    compat_urllib_parse_unquote,
     compat_urlparse,
     compat_urlparse,
 )
 )
 from ..utils import (
 from ..utils import (
@@ -76,7 +77,7 @@ class VeeHDIE(InfoExtractor):
 
 
         if config_json:
         if config_json:
             config = json.loads(config_json)
             config = json.loads(config_json)
-            video_url = compat_urlparse.unquote(config['clip']['url'])
+            video_url = compat_urllib_parse_unquote(config['clip']['url'])
 
 
         if not video_url:
         if not video_url:
             video_url = self._html_search_regex(
             video_url = self._html_search_regex(