[YouPorn] Fix extractor

This commit is contained in:
Yen Chi Hsuan 2015-04-29 04:18:53 +08:00
parent 79adb09baa
commit 9ee53a49f0

View File

@ -47,7 +47,7 @@ def _real_extract(self, url):
# 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: