Browse Source

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

master
Jaime Marquínez Ferrándiz 9 years ago
parent
commit
b37317d8b0
1 changed files with 1 additions and 1 deletions
  1. 2
      youtube_dl/extractor/generic.py

2
youtube_dl/extractor/generic.py

@ -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',

Loading…
Cancel
Save