mirror of
				https://github.com/yt-dlp/yt-dlp.git
				synced 2025-11-04 08:35:12 +00:00 
			
		
		
		
	[extractor/twitter:spaces] Add 'Referer' to m3u8 (#5580)
Closes #5565 Authored by: nixxo
This commit is contained in:
		@@ -1167,7 +1167,8 @@ class TwitterSpacesIE(TwitterBaseIE):
 | 
				
			|||||||
            # XXX: Native downloader does not work
 | 
					            # XXX: Native downloader does not work
 | 
				
			||||||
            formats = self._extract_m3u8_formats(
 | 
					            formats = self._extract_m3u8_formats(
 | 
				
			||||||
                traverse_obj(source, 'noRedirectPlaybackUrl', 'location'),
 | 
					                traverse_obj(source, 'noRedirectPlaybackUrl', 'location'),
 | 
				
			||||||
                metadata['media_key'], 'm4a', 'm3u8', live=live_status == 'is_live')
 | 
					                metadata['media_key'], 'm4a', 'm3u8', live=live_status == 'is_live',
 | 
				
			||||||
 | 
					                headers={'Referer': 'https://twitter.com/'})
 | 
				
			||||||
            for fmt in formats:
 | 
					            for fmt in formats:
 | 
				
			||||||
                fmt.update({'vcodec': 'none', 'acodec': 'aac'})
 | 
					                fmt.update({'vcodec': 'none', 'acodec': 'aac'})
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user