From: chaos33 <919946h43k48> Date: Tue, 3 Mar 2015 14:53:05 +0000 (+0800) Subject: fix youporn extractor's json search regex X-Git-Url: http://git.cielonegro.org/gitweb.cgi?a=commitdiff_plain;h=e0d0572b731b79393a5c5121acf4a43017160936;p=youtube-dl.git fix youporn extractor's json search regex --- diff --git a/youtube_dl/extractor/youporn.py b/youtube_dl/extractor/youporn.py index 107c9ac36..a278386d4 100644 --- a/youtube_dl/extractor/youporn.py +++ b/youtube_dl/extractor/youporn.py @@ -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)