瀏覽代碼

[generic] Unescape webpage contents

Sergey M 11 年之前
父節點
當前提交
1f7659dbe9
共有 1 個文件被更改,包括 2 次插入0 次删除
  1. 2 0
      youtube_dl/extractor/generic.py

+ 2 - 0
youtube_dl/extractor/generic.py

@@ -291,6 +291,8 @@ class GenericIE(InfoExtractor):
         except compat_xml_parse_error:
         except compat_xml_parse_error:
             pass
             pass
 
 
+        webpage = compat_urllib_parse.unquote(webpage)
+
         # it's tempting to parse this further, but you would
         # it's tempting to parse this further, but you would
         # have to take into account all the variations like
         # have to take into account all the variations like
         #   Video Title - Site Name
         #   Video Title - Site Name