Browse Source

Merge pull request #5115 from chaos33/youporn-json

fix youporn extractor's json search regex
Sergey M. 10 years ago
parent
commit
376817c6d4
1 changed files with 1 additions and 1 deletions
  1. 1 1
      youtube_dl/extractor/youporn.py

+ 1 - 1
youtube_dl/extractor/youporn.py

@@ -47,7 +47,7 @@ class YouPornIE(InfoExtractor):
 
 
         # Get JSON parameters
         # Get JSON parameters
         json_params = self._search_regex(
         json_params = self._search_regex(
-            r'var currentVideo = new Video\((.*)\)[,;]',
+            r'var videoJason = (.*)[,;]',
             webpage, 'JSON parameters')
             webpage, 'JSON parameters')
         try:
         try:
             params = json.loads(json_params)
             params = json.loads(json_params)