From: Philipp Hagemeister Date: Fri, 5 Dec 2014 23:48:29 +0000 (+0100) Subject: [youporn] Fix JSON parameter regexp (Fixes #4384) X-Git-Url: http://git.oshgnacknak.de/?a=commitdiff_plain;h=58daf5ebed87fb92d0b4866777d448e1142e346b;p=youtube-dl [youporn] Fix JSON parameter regexp (Fixes #4384) --- 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: