Преглед на файлове

[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:
             pass
 
+        webpage = compat_urllib_parse.unquote(webpage)
+
         # it's tempting to parse this further, but you would
         # have to take into account all the variations like
         #   Video Title - Site Name