1
0
mirror of https://github.com/yt-dlp/yt-dlp.git synced 2025-07-18 11:18:30 +00:00
This commit is contained in:
_Grqz 2025-07-15 14:47:28 +12:00
parent 92173d7bc9
commit 8385332556
No known key found for this signature in database
GPG Key ID: 4A31E5120DA20EB2

View File

@ -169,7 +169,7 @@ def _sign_wbi(self, params, video_id):
@staticmethod
@functools.cache
def __screen_dimensions():
DIMENSIONS = [
DIMS_AND_PREFS = [
((1920, 1080), 18),
((1366, 768), 18),
((1536, 864), 17),
@ -178,8 +178,8 @@ def __screen_dimensions():
((1440, 900), 5),
((1600, 900), 5),
]
dims = [dim for dim, _ in DIMENSIONS]
prefs = [pref for _, pref in DIMENSIONS]
dims = [dim for dim, _ in DIMS_AND_PREFS]
prefs = [pref for _, pref in DIMS_AND_PREFS]
return random.choices(dims, weights=prefs)[0]
@property