]> gitweb @ CieloNegro.org - youtube-dl.git/commitdiff
Merge pull request #5115 from chaos33/youporn-json
authorSergey M. <dstftw@gmail.com>
Tue, 3 Mar 2015 15:32:13 +0000 (21:32 +0600)
committerSergey M. <dstftw@gmail.com>
Tue, 3 Mar 2015 15:32:13 +0000 (21:32 +0600)
fix youporn extractor's json search regex

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)