1
0
mirror of https://github.com/ytdl-org/youtube-dl.git synced 2024-11-10 19:37:25 +00:00

[youporn] Fix extraction (closes #27822)

This commit is contained in:
Sergey M․ 2021-01-15 14:43:52 +07:00
parent ab9001dab5
commit b484097b01
No known key found for this signature in database
GPG Key ID: 2C393E0F18A9236D

View File

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