commit: b484097b01e4f864c7a4369fc6fd071f756802af
parent ab9001dab50db90f6470fcaf2189bcd2cfc0c370
Author: Sergey M․ <dstftw@gmail.com>
Date: Fri, 15 Jan 2021 14:43:52 +0700
[youporn] Fix extraction (closes #27822)
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/youtube_dl/extractor/youporn.py b/youtube_dl/extractor/youporn.py
@@ -88,7 +88,7 @@ class YouPornIE(InfoExtractor):
# Main source
definitions = self._parse_json(
self._search_regex(
- r'mediaDefinition\s*=\s*(\[.+?\]);', webpage,
+ r'mediaDefinition\s*[=:]\s*(\[.+?\])\s*[;,]', webpage,
'media definitions', default='[]'),
video_id, fatal=False)
if definitions: