1
mirror of https://github.com/yt-dlp/yt-dlp synced 2024-12-15 14:35:54 +01:00

fix youporn extractor's json search regex

This commit is contained in:
chaos33 2015-03-03 22:53:05 +08:00
parent bd3749ed69
commit e0d0572b73

View File

@ -47,7 +47,7 @@ class YouPornIE(InfoExtractor):
# Get JSON parameters
json_params = self._search_regex(
r'var currentVideo = new Video\((.*)\)[,;]',
r'var videoJason = (.*)[,;]',
webpage, 'JSON parameters')
try:
params = json.loads(json_params)