1
0
Fork 0
mirror of https://github.com/ytdl-org/youtube-dl.git synced 2024-12-22 08:47:41 +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: