From: Sergey M․ Date: Fri, 15 Jan 2021 07:43:52 +0000 (+0700) Subject: [youporn] Fix extraction (closes #27822) X-Git-Url: http://git.oshgnacknak.de/?a=commitdiff_plain;h=b484097b01e4f864c7a4369fc6fd071f756802af;p=youtube-dl [youporn] Fix extraction (closes #27822) --- 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: