mirror of
				https://gitlab.com/ytdl-org/youtube-dl.git
				synced 2025-11-03 23:57:06 -05:00 
			
		
		
		
	[kuwo] Check for georestriction
This commit is contained in:
		@@ -31,6 +31,10 @@ class KuwoBaseIE(InfoExtractor):
 | 
				
			|||||||
                (file_format['ext'], file_format.get('br', ''), song_id),
 | 
					                (file_format['ext'], file_format.get('br', ''), song_id),
 | 
				
			||||||
                song_id, note='Download %s url info' % file_format['format'],
 | 
					                song_id, note='Download %s url info' % file_format['format'],
 | 
				
			||||||
            )
 | 
					            )
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					            if song_url == 'IPDeny':
 | 
				
			||||||
 | 
					                raise ExtractorError('This song is blocked in this region', expected=True)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
            if song_url.startswith('http://') or song_url.startswith('https://'):
 | 
					            if song_url.startswith('http://') or song_url.startswith('https://'):
 | 
				
			||||||
                formats.append({
 | 
					                formats.append({
 | 
				
			||||||
                    'url': song_url,
 | 
					                    'url': song_url,
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user