Browse Source

[youporn] Fix extraction (closes #27822)

Sergey M․ 4 năm trước cách đây
mục cha
commit
b484097b01
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      youtube_dl/extractor/youporn.py

+ 1 - 1
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: