fix: 修复播放顺序没有按数字排序的问题 close #249

This commit is contained in:
涵曦 2024-11-12 09:14:20 +08:00
parent ec6018eabf
commit b4d8434507
2 changed files with 2 additions and 2 deletions

View File

@ -358,7 +358,7 @@ def get_random(length):
return "".join(random.sample(string.ascii_letters + string.digits, length))
# 深拷贝把敏感数据设置*
# 深拷贝把敏感数据设置*
def deepcopy_data_no_sensitive_info(data, fields_to_anonymize=None):
if fields_to_anonymize is None:
fields_to_anonymize = [

View File

@ -1246,7 +1246,7 @@ class XiaoMusicDevice:
f"随机打乱 {list_name} {list2str(self._play_list, self.config.verbose)}"
)
else:
self._play_list = sorted(self._play_list)
self._play_list.sort(key=custom_sort_key)
self.log.info(
f"没打乱 {list_name} {list2str(self._play_list, self.config.verbose)}"
)