Fix Your Albums section opening playlist modal instead of album modal
Your Albums cards on the Discover page were using the YouTube/playlist modal (openDownloadMissingModalForYouTube) instead of the album modal (openDownloadMissingModalForArtistAlbum). Now displays with proper album hero section and uses album download context for file organization.
This commit is contained in:
parent
aa8f97e3d5
commit
07d67e8517
1 changed files with 8 additions and 9 deletions
|
|
@ -54913,15 +54913,14 @@ async function openYourAlbumDownload(index) {
|
||||||
track_number: track.track_number || 0
|
track_number: track.track_number || 0
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
const virtualId = `your_albums_${album.spotify_album_id || album.deezer_album_id || album.tidal_album_id || index}`;
|
const virtualId = `discover_album_${album.spotify_album_id || album.deezer_album_id || album.tidal_album_id || index}`;
|
||||||
await openDownloadMissingModalForYouTube(virtualId, albumData.name, tracks,
|
const albumObj = {
|
||||||
{ name: album.artist_name, source: albumData.source || 'spotify' },
|
id: albumData.id, name: albumData.name, album_type: albumData.album_type || 'album',
|
||||||
{
|
total_tracks: albumData.total_tracks || 0, release_date: albumData.release_date || '',
|
||||||
id: albumData.id, name: albumData.name, album_type: albumData.album_type || 'album',
|
images: albumData.images || [], artists: [{ name: album.artist_name }]
|
||||||
total_tracks: albumData.total_tracks || 0, release_date: albumData.release_date || '',
|
};
|
||||||
images: albumData.images || []
|
const artistObj = { id: null, name: album.artist_name };
|
||||||
}
|
await openDownloadMissingModalForArtistAlbum(virtualId, albumData.name, tracks, albumObj, artistObj, false);
|
||||||
);
|
|
||||||
hideLoadingOverlay();
|
hideLoadingOverlay();
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
console.error('Error opening your album download:', e);
|
console.error('Error opening your album download:', e);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue