允许设置其他优先播放的歌曲音质 (#1839)

* 在线播放更高音质

* 修改对应翻译

* 设置-播放设置-优先播放320k音质选项改为“优先播放的音质”

* 修复拼写

* 优化

---------

Co-authored-by: lyswhut <lyswhut@qq.com>
This commit is contained in:
NKXingXh
2024-04-15 19:46:28 +08:00
committed by GitHub
co-authored by lyswhut
parent 87852acb14
commit ab3f118588
11 changed files with 43 additions and 54 deletions
+1 -1
View File
@@ -51,7 +51,7 @@ export const getMusicUrl = async({ musicInfo, quality, isRefresh, allowToggleSou
// // return Promise.reject(new Error('该歌曲没有可播放的音频'))
// }
const targetQuality = quality ?? getPlayQuality(appSetting['player.highQuality'], musicInfo)
const targetQuality = quality ?? getPlayQuality(appSetting['player.playQuality'], musicInfo)
const cachedUrl = await getStoreMusicUrl(musicInfo, targetQuality)
if (cachedUrl && !isRefresh) return cachedUrl