aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/extractor
diff options
context:
space:
mode:
authorSergey M․ <dstftw@gmail.com>2021-01-15 14:43:52 +0700
committerSergey M․ <dstftw@gmail.com>2021-01-15 14:43:52 +0700
commitb484097b01e4f864c7a4369fc6fd071f756802af (patch)
treeb450642b1d524a9518844c72256ed56ababa1bee /youtube_dl/extractor
parentab9001dab50db90f6470fcaf2189bcd2cfc0c370 (diff)
[youporn] Fix extraction (closes #27822)
Diffstat (limited to 'youtube_dl/extractor')
-rw-r--r--youtube_dl/extractor/youporn.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/youtube_dl/extractor/youporn.py b/youtube_dl/extractor/youporn.py
index 7b9feafeb..a1f0cce2c 100644
--- 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: