mirror of
https://github.com/yt-dlp/yt-dlp
synced 2025-12-21 08:35:40 +07:00
@@ -65,7 +65,7 @@ def extract_formats(format_url, format_key=None, lang=None):
|
|||||||
|
|
||||||
options = self._parse_json(
|
options = self._parse_json(
|
||||||
self._search_regex(
|
self._search_regex(
|
||||||
r'(?s)var\s+playerOptions\s*=\s*({.+?});',
|
r'(?s)(?:TDIPlayerOptions|playerOptions)\s*=\s*({.+?});\s*\]\]',
|
||||||
playerpage, 'player options', default='{}'),
|
playerpage, 'player options', default='{}'),
|
||||||
video_id, transform_source=js_to_json, fatal=False)
|
video_id, transform_source=js_to_json, fatal=False)
|
||||||
if options:
|
if options:
|
||||||
|
|||||||
Reference in New Issue
Block a user