mirror of
https://github.com/qier222/YesPlayMusic.git
synced 2024-11-22 09:20:11 +08:00
fix: cloudpan music playing error (#812)
This commit is contained in:
parent
daadad7bf3
commit
89d346b2ff
|
@ -52,7 +52,10 @@ async function deleteExcessCache() {
|
|||
|
||||
export function cacheTrackSource(trackInfo, url, bitRate, from = 'netease') {
|
||||
const name = trackInfo.name;
|
||||
const artist = trackInfo.ar[0]?.name || trackInfo.artists[0]?.name;
|
||||
const artist =
|
||||
(trackInfo.ar && trackInfo.ar[0]?.name) ||
|
||||
(trackInfo.artists && trackInfo.artists[0]?.name) ||
|
||||
'Unknown';
|
||||
let cover = trackInfo.al.picUrl;
|
||||
if (cover.slice(0, 5) !== 'https') {
|
||||
cover = 'https' + cover.slice(4);
|
||||
|
|
Loading…
Reference in New Issue
Block a user