mirror of
https://github.com/GiriNeko/YesPlayMusic.git
synced 2025-12-17 21:58:03 +00:00
fix: bugs
This commit is contained in:
parent
36447ae5d8
commit
d9c8489c92
5 changed files with 271 additions and 264 deletions
|
|
@ -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() {
|
||||
|
|
|
|||
|
|
@ -60,7 +60,3 @@ export function clearDB() {
|
|||
resolve();
|
||||
});
|
||||
}
|
||||
|
||||
window.cacheTrackSource = cacheTrackSource;
|
||||
window.db = db;
|
||||
window.countDBSize = countDBSize;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue