fix: bugs

This commit is contained in:
qier222 2021-03-25 21:58:47 +08:00
parent 36447ae5d8
commit d9c8489c92
No known key found for this signature in database
GPG key ID: 9C85007ED905F14D
5 changed files with 271 additions and 264 deletions

View file

@ -270,13 +270,7 @@ export default class {
const nextTrack = this._getNextTrack();
getTrackDetail(nextTrack[0]).then((data) => {
let track = data.songs[0];
this._getAudioSourceFromCache(String(track.id))
.then((source) => {
return source ?? this._getAudioSourceFromNetease(track);
})
.then((source) => {
return source ?? this._getAudioSourceFromUnblockMusic(track);
});
this._getAudioSource(track);
});
}
_loadSelfFromLocalStorage() {

View file

@ -60,7 +60,3 @@ export function clearDB() {
resolve();
});
}
window.cacheTrackSource = cacheTrackSource;
window.db = db;
window.countDBSize = countDBSize;