mirror of
				https://github.com/yt-dlp/yt-dlp.git
				synced 2025-11-04 08:35:12 +00:00 
			
		
		
		
	[eporner] Simplify and hardcode age limit
This commit is contained in:
		@@ -35,8 +35,7 @@ class EpornerIE(InfoExtractor):
 | 
				
			|||||||
        title = self._html_search_regex(
 | 
					        title = self._html_search_regex(
 | 
				
			||||||
            r'<title>(.*?) - EPORNER', webpage, 'title')
 | 
					            r'<title>(.*?) - EPORNER', webpage, 'title')
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        redirect_url = 'http://www.eporner.com/config5/%s' % video_id
 | 
				
			||||||
        redirect_url = 'http://www.eporner.com/config5/%s/%s' % (video_id, display_id)
 | 
					 | 
				
			||||||
        player_code = self._download_webpage(
 | 
					        player_code = self._download_webpage(
 | 
				
			||||||
            redirect_url, display_id, note='Downloading player config')
 | 
					            redirect_url, display_id, note='Downloading player config')
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@@ -67,5 +66,5 @@ class EpornerIE(InfoExtractor):
 | 
				
			|||||||
            'duration': duration,
 | 
					            'duration': duration,
 | 
				
			||||||
            'view_count': view_count,
 | 
					            'view_count': view_count,
 | 
				
			||||||
            'formats': formats,
 | 
					            'formats': formats,
 | 
				
			||||||
            'age_limit': self._rta_search(webpage),
 | 
					            'age_limit': 18,
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user