Browse Source

[youporn] Fix JSON parameter regexp (Fixes #4384)

totalwebcasting
Philipp Hagemeister 10 years ago
parent
commit
58daf5ebed
1 changed files with 3 additions and 1 deletions
  1. +3
    -1
      youtube_dl/extractor/youporn.py

+ 3
- 1
youtube_dl/extractor/youporn.py View File

@ -45,7 +45,9 @@ class YouPornIE(InfoExtractor):
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…
Cancel
Save