Skip to content

A feature-rich command-line audio/video downloader

[generic] Unescape webpage contents

Sergey M1f7659dbe90b
diff --git a/youtube_dl/extractor/generic.py b/youtube_dl/extractor/generic.py
index 6e63247792..a3de0ba60a 100644
--- a/youtube_dl/extractor/generic.py
+++ b/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