From: Sergey M. Date: Tue, 3 Mar 2015 15:32:13 +0000 (+0600) Subject: Merge pull request #5115 from chaos33/youporn-json X-Git-Url: http://git.cielonegro.org/gitweb.cgi?a=commitdiff_plain;h=376817c6d48b0915502e687655e266d80cb45a7a;hp=7fde87c77da41f24faf34b37f5d05c029ac23d4f;p=youtube-dl.git Merge pull request #5115 from chaos33/youporn-json 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)