1
0
mirror of https://github.com/yt-dlp/yt-dlp.git synced 2025-07-09 19:41:55 +00:00

[ie/sproutvideo] Fix extractor (#13610)

Closes #13606
Authored by: bashonly
This commit is contained in:
bashonly 2025-07-02 08:21:06 -05:00 committed by GitHub
parent c316416b97
commit 0b41746964
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -101,7 +101,7 @@ class SproutVideoIE(InfoExtractor):
webpage = self._download_webpage(
url, video_id, headers=traverse_obj(smuggled_data, {'Referer': 'referer'}), impersonate=True)
data = self._search_json(
r'var\s+(?:dat|playerInfo)\s*=\s*["\']', webpage, 'player info', video_id,
r'(?:var|const|let)\s+(?:dat|playerInfo)\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())