aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/extractor
diff options
context:
space:
mode:
authorPhilipp Hagemeister <phihag@phihag.de>2014-12-06 00:48:29 +0100
committerPhilipp Hagemeister <phihag@phihag.de>2014-12-06 00:48:29 +0100
commit58daf5ebed87fb92d0b4866777d448e1142e346b (patch)
tree5b3c84d472fb8dc695a9e750480a3b2f34d512f9 /youtube_dl/extractor
parent1a7c6c69d3a1f16507b9fff87257cd7f2fef7f25 (diff)
[youporn] Fix JSON parameter regexp (Fixes #4384)
Diffstat (limited to 'youtube_dl/extractor')
-rw-r--r--youtube_dl/extractor/youporn.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/youtube_dl/extractor/youporn.py b/youtube_dl/extractor/youporn.py
index 8123928be..d9c06a2ee 100644
--- a/youtube_dl/extractor/youporn.py
+++ b/youtube_dl/extractor/youporn.py
@@ -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: