fix youporn extractor's json search regex
authorchaos33 <919946h43k48>
Tue, 3 Mar 2015 14:53:05 +0000 (22:53 +0800)
committerchaos33 <919946h43k48>
Tue, 3 Mar 2015 14:53:05 +0000 (22:53 +0800)
youtube_dl/extractor/youporn.py

index 107c9ac36e4f4f48bd768567e4399af15fd07743..a278386d4ded92b455ef99a0a5acc4935480efcd 100644 (file)
@@ -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)