Authored by: bashonly
This commit is contained in:
bashonly 2024-05-05 17:15:40 -05:00
parent 4540384ef3
commit 8dc24800c2
No known key found for this signature in database
GPG key ID: 783F096F253D15B0

View file

@ -89,8 +89,7 @@ class YouPornIE(InfoExtractor):
def _real_extract(self, url):
video_id, display_id = self._match_valid_url(url).group('id', 'display_id')
self._set_cookie('.youporn.com', 'age_verified', '1')
webpage = self._download_webpage(
f'https://www.youporn.com/watch/{video_id}', video_id)
webpage = self._download_webpage(f'https://www.youporn.com/watch/{video_id}', video_id)
player_vars = self._search_json(r'\bplayervars\s*:', webpage, 'player vars', display_id)
definitions = {}