chore(app): 优化可执行文件构建命令

This commit is contained in:
Quan
2026-01-31 16:52:42 +08:00
parent fcb58e3c44
commit 728f05b4bf
5 changed files with 10 additions and 10 deletions

View File

@@ -38,8 +38,10 @@ class Video:
match preference:
case "resolution":
items.sort(key=lambda x: x.height)
case "bitrate" | "size":
items.sort(key=lambda x: x.preference)
case "bitrate":
items.sort(key=lambda x: x.videoBitrate)
case "size":
items.sort(key=lambda x: x.size)
case _:
raise ValueError(f"Invalid video preference value: {preference}")
return [b[0]] if (b := items[-1].backupUrls) else [items[-1].masterUrl]