1
0
mirror of https://github.com/yt-dlp/yt-dlp.git synced 2025-07-27 15:48:28 +00:00

[ie/sproutvideo] Fix extractor (#13813)

Authored by: bashonly
This commit is contained in:
bashonly 2025-07-22 16:46:46 -05:00 committed by GitHub
parent c59ad2b066
commit 59765ecbc0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -101,8 +101,8 @@ def _real_extract(self, url):
webpage = self._download_webpage(
url, video_id, headers=traverse_obj(smuggled_data, {'Referer': 'referer'}))
data = self._search_json(
r'(?:var|const|let)\s+(?:dat|playerInfo)\s*=\s*["\']', webpage, 'player info', video_id,
contains_pattern=r'[A-Za-z0-9+/=]+', end_pattern=r'["\'];',
r'(?:var|const|let)\s+(?:dat|(?:player|video)Info|)\s*=\s*["\']', webpage, 'player info',
video_id, contains_pattern=r'[A-Za-z0-9+/=]+', end_pattern=r'["\'];',
transform_source=lambda x: base64.b64decode(x).decode())
# SproutVideo may send player info for 'SMPTE Color Monitor Test' [a791d7b71b12ecc52e]