1
0
Fork 0
mirror of https://gitlab.com/dstftw/youtube-dl.git synced 2020-11-16 09:42:26 +00:00

Merge pull request #5115 from chaos33/youporn-json

fix youporn extractor's json search regex
This commit is contained in:
Sergey M. 2015-03-03 21:32:13 +06:00
commit 376817c6d4

View file

@ -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)