mirror of
				https://gitlab.com/ytdl-org/youtube-dl.git
				synced 2025-11-03 22:17:06 -05:00 
			
		
		
		
	[dramafever] Improve geo restriction detection and use geo bypass mechanism
This commit is contained in:
		@@ -116,8 +116,9 @@ class DramaFeverIE(DramaFeverBaseIE):
 | 
			
		||||
                'http://www.dramafever.com/amp/episode/feed.json?guid=%s' % video_id)
 | 
			
		||||
        except ExtractorError as e:
 | 
			
		||||
            if isinstance(e.cause, compat_HTTPError):
 | 
			
		||||
                raise ExtractorError(
 | 
			
		||||
                    'Currently unavailable in your country.', expected=True)
 | 
			
		||||
                self.raise_geo_restricted(
 | 
			
		||||
                    msg='Currently unavailable in your country',
 | 
			
		||||
                    countries=['US', 'CA'])
 | 
			
		||||
            raise
 | 
			
		||||
 | 
			
		||||
        series_id, episode_number = video_id.split('.')
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user