mirror of
				https://github.com/yt-dlp/yt-dlp.git
				synced 2025-11-04 08:35:12 +00:00 
			
		
		
		
	[iprima] Confirm adult check (closes #17437)
This commit is contained in:
		@@ -38,6 +38,8 @@ class IPrimaIE(InfoExtractor):
 | 
				
			|||||||
    def _real_extract(self, url):
 | 
					    def _real_extract(self, url):
 | 
				
			||||||
        video_id = self._match_id(url)
 | 
					        video_id = self._match_id(url)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        self._set_cookie('play.iprima.cz', 'ott_adult_confirmed', '1')
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        webpage = self._download_webpage(url, video_id)
 | 
					        webpage = self._download_webpage(url, video_id)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        video_id = self._search_regex(r'data-product="([^"]+)">', webpage, 'real id')
 | 
					        video_id = self._search_regex(r'data-product="([^"]+)">', webpage, 'real id')
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user