mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-07 20:30:41 -05:00
[youporn] Fix JSON parameter regexp (Fixes #4384)
This commit is contained in:
parent
1a7c6c69d3
commit
58daf5ebed
1 changed files with 3 additions and 1 deletions
|
@ -45,7 +45,9 @@ def _real_extract(self, url):
|
|||
age_limit = self._rta_search(webpage)
|
||||
|
||||
# Get JSON parameters
|
||||
json_params = self._search_regex(r'var currentVideo = new Video\((.*)\);', webpage, 'JSON parameters')
|
||||
json_params = self._search_regex(
|
||||
r'var currentVideo = new Video\((.*)\)[,;]',
|
||||
webpage, 'JSON parameters')
|
||||
try:
|
||||
params = json.loads(json_params)
|
||||
except:
|
||||
|
|
Loading…
Reference in a new issue