mirror of
				https://github.com/yt-dlp/yt-dlp.git
				synced 2025-11-04 08:35:12 +00:00 
			
		
		
		
	[tvplay] Don't raise an exception if is_geo_blocked is True
				
					
				
			Videos which return `is_geo_blocked' to be True can actually be downloaded from the country to which the video is restricted
This commit is contained in:
		@@ -182,8 +182,8 @@ class TVPlayIE(InfoExtractor):
 | 
				
			|||||||
            'http://playapi.mtgx.tv/v1/videos/%s' % video_id, video_id, 'Downloading video JSON')
 | 
					            'http://playapi.mtgx.tv/v1/videos/%s' % video_id, video_id, 'Downloading video JSON')
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        if video['is_geo_blocked']:
 | 
					        if video['is_geo_blocked']:
 | 
				
			||||||
            raise ExtractorError(
 | 
					            self.report_warning(
 | 
				
			||||||
                'This content is not available in your country due to copyright reasons', expected=True)
 | 
					                'This content might not be available in your country due to copyright reasons')
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        streams = self._download_json(
 | 
					        streams = self._download_json(
 | 
				
			||||||
            'http://playapi.mtgx.tv/v1/videos/stream/%s' % video_id, video_id, 'Downloading streams JSON')
 | 
					            'http://playapi.mtgx.tv/v1/videos/stream/%s' % video_id, video_id, 'Downloading streams JSON')
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user