aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/extractor/generic.py
diff options
context:
space:
mode:
authorSergey M․ <dstftw@gmail.com>2015-05-07 21:02:59 +0600
committerSergey M․ <dstftw@gmail.com>2015-05-07 21:02:59 +0600
commit406224be5231e602b543579706ad6056b75fbe68 (patch)
treece39fde8ef26c16e9a58692b592ac18578e6eade /youtube_dl/extractor/generic.py
parent553e412bda0c2329bd4c6353cd392c50a81bd594 (diff)
[extractor/generic] Fix following incomplete redirects (#5640)
Diffstat (limited to 'youtube_dl/extractor/generic.py')
-rw-r--r--youtube_dl/extractor/generic.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/youtube_dl/extractor/generic.py b/youtube_dl/extractor/generic.py
index d09e85665..cd7c47d6d 100644
--- a/youtube_dl/extractor/generic.py
+++ b/youtube_dl/extractor/generic.py
@@ -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',