From e0d0572b731b79393a5c5121acf4a43017160936 Mon Sep 17 00:00:00 2001 From: chaos33 <919946h43k48> Date: Tue, 3 Mar 2015 22:53:05 +0800 Subject: [PATCH] fix youporn extractor's json search regex --- youtube_dl/extractor/youporn.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 @@ def _real_extract(self, url): # 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)