Revert "Improve album classification and modal data handling"

This reverts commit b32871cf28.
This commit is contained in:
Broque Thomas 2026-01-06 15:20:30 -08:00
parent 6b7877edab
commit 7d22671628
2 changed files with 1 additions and 6 deletions

View file

@ -9331,9 +9331,6 @@ def get_wishlist_stats():
# Use track count (most accurate)
if total_tracks >= 6:
albums_count += 1
elif album_type == 'album' and total_tracks > 1:
# Respect explicit 'album' type for multi-track releases even if short
albums_count += 1
else:
singles_count += 1
else:

View file

@ -32853,9 +32853,7 @@ async function openDownloadModalForRecentAlbum(albumIndex) {
artists: artists,
album: {
name: album.album_name,
images: album.album_cover_url ? [{ url: album.album_cover_url }] : [],
total_tracks: albumData.total_tracks || albumData.tracks.length,
album_type: albumData.album_type || 'album'
images: album.album_cover_url ? [{ url: album.album_cover_url }] : []
},
duration_ms: track.duration_ms || 0
};