mirror of
				https://github.com/yt-dlp/yt-dlp.git
				synced 2025-11-04 00:20:47 +00:00 
			
		
		
		
	[ie/BiliIntl] Fix referer header (#11003)
	
		
			
	
		
	
	
		
	
		
			Some checks failed
		
		
	
	
		
			
				
	
				CodeQL / Analyze (python) (push) Has been cancelled
				
			
		
			
				
	
				Download Tests / Quick Download Tests (push) Has been cancelled
				
			
		
			
				
	
				Download Tests / Full Download Tests (ubuntu-latest, 3.10) (push) Has been cancelled
				
			
		
			
				
	
				Download Tests / Full Download Tests (ubuntu-latest, 3.11) (push) Has been cancelled
				
			
		
			
				
	
				Download Tests / Full Download Tests (ubuntu-latest, 3.12) (push) Has been cancelled
				
			
		
			
				
	
				Download Tests / Full Download Tests (ubuntu-latest, pypy-3.10) (push) Has been cancelled
				
			
		
			
				
	
				Download Tests / Full Download Tests (ubuntu-latest, pypy-3.8) (push) Has been cancelled
				
			
		
			
				
	
				Download Tests / Full Download Tests (windows-latest, 3.8) (push) Has been cancelled
				
			
		
			
				
	
				Download Tests / Full Download Tests (windows-latest, pypy-3.9) (push) Has been cancelled
				
			
		
			
				
	
				Quick Test / Core Test (push) Has been cancelled
				
			
		
			
				
	
				Quick Test / Code check (push) Has been cancelled
				
			
		
			
				
	
				Release (master) / release (push) Has been cancelled
				
			
		
		
	
	
				
					
				
			
		
			Some checks failed
		
		
	
	CodeQL / Analyze (python) (push) Has been cancelled
				
			Download Tests / Quick Download Tests (push) Has been cancelled
				
			Download Tests / Full Download Tests (ubuntu-latest, 3.10) (push) Has been cancelled
				
			Download Tests / Full Download Tests (ubuntu-latest, 3.11) (push) Has been cancelled
				
			Download Tests / Full Download Tests (ubuntu-latest, 3.12) (push) Has been cancelled
				
			Download Tests / Full Download Tests (ubuntu-latest, pypy-3.10) (push) Has been cancelled
				
			Download Tests / Full Download Tests (ubuntu-latest, pypy-3.8) (push) Has been cancelled
				
			Download Tests / Full Download Tests (windows-latest, 3.8) (push) Has been cancelled
				
			Download Tests / Full Download Tests (windows-latest, pypy-3.9) (push) Has been cancelled
				
			Quick Test / Core Test (push) Has been cancelled
				
			Quick Test / Code check (push) Has been cancelled
				
			Release (master) / release (push) Has been cancelled
				
			Closes #10996 Authored by: Khaoklong51
This commit is contained in:
		@@ -1852,7 +1852,7 @@ class BiliBiliPlayerIE(InfoExtractor):
 | 
			
		||||
class BiliIntlBaseIE(InfoExtractor):
 | 
			
		||||
    _API_URL = 'https://api.bilibili.tv/intl/gateway'
 | 
			
		||||
    _NETRC_MACHINE = 'biliintl'
 | 
			
		||||
    _HEADERS = {'Referer': 'https://www.bilibili.com/'}
 | 
			
		||||
    _HEADERS = {'Referer': 'https://www.bilibili.tv/'}
 | 
			
		||||
 | 
			
		||||
    def _call_api(self, endpoint, *args, **kwargs):
 | 
			
		||||
        json = self._download_json(self._API_URL + endpoint, *args, **kwargs)
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user