mirror of
				https://github.com/yt-dlp/yt-dlp.git
				synced 2025-11-04 08:35:12 +00:00 
			
		
		
		
	[yahoo:gyao] add X-User-Agent header to dam proxy requests(closes #21071)
This commit is contained in:
		@@ -511,6 +511,8 @@ class YahooGyaOPlayerIE(InfoExtractor):
 | 
				
			|||||||
            'https://gyao.yahoo.co.jp/dam/v1/videos/' + video_id,
 | 
					            'https://gyao.yahoo.co.jp/dam/v1/videos/' + video_id,
 | 
				
			||||||
            video_id, query={
 | 
					            video_id, query={
 | 
				
			||||||
                'fields': 'longDescription,title,videoId',
 | 
					                'fields': 'longDescription,title,videoId',
 | 
				
			||||||
 | 
					            }, headers={
 | 
				
			||||||
 | 
					                'X-User-Agent': 'Unknown Pc GYAO!/2.0.0 Web',
 | 
				
			||||||
            })
 | 
					            })
 | 
				
			||||||
        return {
 | 
					        return {
 | 
				
			||||||
            '_type': 'url_transparent',
 | 
					            '_type': 'url_transparent',
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user