]> gitweb @ CieloNegro.org - youtube-dl.git/commitdiff
[YouPorn] Fix extractor
authorYen Chi Hsuan <yan12125@gmail.com>
Tue, 28 Apr 2015 20:18:53 +0000 (04:18 +0800)
committerYen Chi Hsuan <yan12125@gmail.com>
Wed, 29 Apr 2015 16:50:48 +0000 (00:50 +0800)
youtube_dl/extractor/youporn.py

index 6abe72f739b63d8b39d8cdfc5bfccf70dc545715..4ba7c36db78fb457b63e05fe161a75b00383c78c 100644 (file)
@@ -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: