fix: bugs

This commit is contained in:
qier222 2021-06-08 00:09:30 +08:00
parent 22c9691a73
commit c506dea02b
No known key found for this signature in database
GPG key ID: 9C85007ED905F14D
18 changed files with 79 additions and 32 deletions

View file

@ -322,6 +322,7 @@ export default class {
? this._personalFMNextTrack.id
: this._getNextTrack()[0];
if (!nextTrackID) return;
if (this._personalFMTrack.id == nextTrackID) return;
getTrackDetail(nextTrackID).then(data => {
let track = data.songs[0];
this._getAudioSource(track);
@ -406,6 +407,7 @@ export default class {
_loadPersonalFMNextTrack() {
return personalFM().then(result => {
this._personalFMNextTrack = result.data[0];
this._cacheNextTrack(); // cache next track
return this._personalFMNextTrack;
});
}