diff options
author | Yen Chi Hsuan <yan12125@gmail.com> | 2015-04-29 04:18:53 +0800 |
---|---|---|
committer | Yen Chi Hsuan <yan12125@gmail.com> | 2015-04-30 00:50:48 +0800 |
commit | 9ee53a49f0f040f07e0f675e2077f22ace2acefe (patch) | |
tree | f1604cc9271602f18f346762c70589e7eeddd98d | |
parent | 79adb09baa26928e62f4c3b64b0ac011eed9de0c (diff) |
[YouPorn] Fix extractor
-rw-r--r-- | youtube_dl/extractor/youporn.py | 2 |
1 files changed, 1 insertions, 1 deletions
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: |