mirror of
https://github.com/l1ving/youtube-dl
synced 2024-12-21 13:32:55 +08:00
Merge pull request #5115 from chaos33/youporn-json
fix youporn extractor's json search regex
This commit is contained in:
commit
376817c6d4
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user