mirror of
				https://github.com/yt-dlp/yt-dlp.git
				synced 2025-10-31 14:45:14 +00:00 
			
		
		
		
	[extractor/generic] Fix following incomplete redirects (#5640)
This commit is contained in:
		| @@ -1453,7 +1453,7 @@ class GenericIE(InfoExtractor): | |||||||
|                 if refresh_header: |                 if refresh_header: | ||||||
|                     found = re.search(REDIRECT_REGEX, refresh_header) |                     found = re.search(REDIRECT_REGEX, refresh_header) | ||||||
|             if found: |             if found: | ||||||
|                 new_url = found.group(1) |                 new_url = compat_urlparse.urljoin(url, found.group(1)) | ||||||
|                 self.report_following_redirect(new_url) |                 self.report_following_redirect(new_url) | ||||||
|                 return { |                 return { | ||||||
|                     '_type': 'url', |                     '_type': 'url', | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Sergey M․
					Sergey M․