From 7d22671628d5b779c88817289fb0d28a7b83d73d Mon Sep 17 00:00:00 2001 From: Broque Thomas Date: Tue, 6 Jan 2026 15:20:30 -0800 Subject: [PATCH] Revert "Improve album classification and modal data handling" This reverts commit b32871cf2818505e7ab75490478ff8936d8d1e55. --- web_server.py | 3 --- webui/static/script.js | 4 +--- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/web_server.py b/web_server.py index 2e8f7a73..0b20301e 100644 --- a/web_server.py +++ b/web_server.py @@ -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: diff --git a/webui/static/script.js b/webui/static/script.js index cb07d0ae..29a22e91 100644 --- a/webui/static/script.js +++ b/webui/static/script.js @@ -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 };