1
0
mirror of https://source.netsyms.com/Mirrors/youtube-dl synced 2026-04-10 03:14:53 +00:00

[extractor/generic] Fix following incomplete redirects (#5640)

This commit is contained in:
Sergey M․
2015-05-07 21:02:59 +06:00
parent 553e412bda
commit 406224be52

View File

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