1
0
Fork 0
mirror of https://github.com/ytdl-org/youtube-dl.git synced 2024-11-22 18:22:21 +00:00

[generic] Unescape HTML escape sequences in redirect urls (fixes #6311)

This commit is contained in:
Jaime Marquínez Ferrándiz 2015-07-22 23:33:49 +02:00
parent 87dc451108
commit b37317d8b0

View file

@ -1702,7 +1702,7 @@ class GenericIE(InfoExtractor):
if refresh_header:
found = re.search(REDIRECT_REGEX, refresh_header)
if found:
new_url = compat_urlparse.urljoin(url, found.group(1))
new_url = compat_urlparse.urljoin(url, unescapeHTML(found.group(1)))
self.report_following_redirect(new_url)
return {
'_type': 'url',