Update script.js
This commit is contained in:
parent
edbfe6bb74
commit
008ddcf0ed
1 changed files with 5 additions and 2 deletions
|
|
@ -3129,7 +3129,10 @@ function matchedDownloadAlbumTrack(albumIndex, trackIndex) {
|
||||||
const albumData = results[albumIndex];
|
const albumData = results[albumIndex];
|
||||||
const trackData = albumData.tracks[trackIndex];
|
const trackData = albumData.tracks[trackIndex];
|
||||||
|
|
||||||
// Pass the specific track as the main search result, but also pass the full album data for context.
|
// This is the definitive fix.
|
||||||
openMatchingModal(trackData, true, albumData);
|
// The second argument MUST be 'false' to treat this as a single track download,
|
||||||
|
// which prevents the modal from asking for an album selection.
|
||||||
|
openMatchingModal(trackData, false, albumData);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue