[youporn] Fix extraction (closes #27822)
authorSergey M․ <dstftw@gmail.com>
Fri, 15 Jan 2021 07:43:52 +0000 (14:43 +0700)
committerSergey M․ <dstftw@gmail.com>
Fri, 15 Jan 2021 07:43:52 +0000 (14:43 +0700)
youtube_dl/extractor/youporn.py

index 7b9feafeb2a6beb75a8f7e9424fd74af0b227c3f..a1f0cce2c6d7752a5488e39ad2d0c3fca8064d37 100644 (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: