mirror of
https://gitlab.com/RemixDev/deemix-js.git
synced 2024-12-29 10:56:18 +00:00
Fixed search fallback not working
This commit is contained in:
parent
bdbde74fa2
commit
0e3cc11364
|
@ -460,9 +460,9 @@ class Downloader {
|
||||||
}
|
}
|
||||||
if (!track.searched && this.settings.fallbackSearch){
|
if (!track.searched && this.settings.fallbackSearch){
|
||||||
this.warn(itemName, e.errid, 'search')
|
this.warn(itemName, e.errid, 'search')
|
||||||
let searchedID = this.dz.api.get_track_id_from_metadata(track.mainArtist.name, track.title, track.album.title)
|
let searchedID = await this.dz.api.get_track_id_from_metadata(track.mainArtist.name, track.title, track.album.title)
|
||||||
if (searchedID != "0"){
|
if (searchedID != "0"){
|
||||||
let newTrack = await this.dz.gw.get_track_with_fallback(track.fallbackID)
|
let newTrack = await this.dz.gw.get_track_with_fallback(searchedID)
|
||||||
track.parseEssentialData(newTrack)
|
track.parseEssentialData(newTrack)
|
||||||
track.retriveFilesizes(this.dz)
|
track.retriveFilesizes(this.dz)
|
||||||
track.searched = true
|
track.searched = true
|
||||||
|
|
Loading…
Reference in a new issue