Browse Source

fix youporn extractor's json search regex

totalwebcasting
chaos33 10 years ago
parent
commit
e0d0572b73
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      youtube_dl/extractor/youporn.py

+ 1
- 1
youtube_dl/extractor/youporn.py 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)


Loading…
Cancel
Save