1
0
Fork 0

[utils] random_user_agent: Bump versions (#13543)

Closes #5362
Authored by: bashonly
This commit is contained in:
bashonly 2025-07-22 16:34:03 -05:00 committed by GitHub
commit c59ad2b066
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 10 additions and 81 deletions

View file

@ -99,7 +99,7 @@ class SproutVideoIE(InfoExtractor):
url, smuggled_data = unsmuggle_url(url, {})
video_id = self._match_id(url)
webpage = self._download_webpage(
url, video_id, headers=traverse_obj(smuggled_data, {'Referer': 'referer'}), impersonate=True)
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'["\'];',