From: Yen Chi Hsuan Date: Tue, 28 Apr 2015 20:18:53 +0000 (+0800) Subject: [YouPorn] Fix extractor X-Git-Url: http://git.oshgnacknak.de/?a=commitdiff_plain;h=9ee53a49f0f040f07e0f675e2077f22ace2acefe;p=youtube-dl [YouPorn] Fix extractor --- diff --git a/youtube_dl/extractor/youporn.py b/youtube_dl/extractor/youporn.py index 6abe72f73..4ba7c36db 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\s+videoJa?son\s*=\s*({.+?});', + [r'videoJa?son\s*=\s*({.+})', r'var\s+currentVideo\s*=\s*new\s+Video\((.+?)\)[,;]'], webpage, 'JSON parameters') try: