mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2025-07-18 11:18:30 +00:00
rename
This commit is contained in:
parent
92173d7bc9
commit
8385332556
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user