fix: 修复播放顺序没有按数字排序的问题 close #249
This commit is contained in:
parent
ec6018eabf
commit
b4d8434507
@ -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 = [
|
||||
|
@ -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)}"
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user