mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-21 20:46:36 -05:00
[extractor/generic] Fix following incomplete redirects (#5640)
This commit is contained in:
parent
553e412bda
commit
406224be52
1 changed files with 1 additions and 1 deletions
|
@ -1453,7 +1453,7 @@ def filter_video(urls):
|
|||
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',
|
||||
|
|
Loading…
Reference in a new issue