Show actual local/missing track counts in Active Playlists

- Fetches current Jellyfin playlist track count
- Compares with Spotify playlist total to calculate missing tracks
- Shows: '25 local / 5 missing' instead of just track count
- Local = tracks currently in Jellyfin playlist
- Missing = Spotify tracks not yet in Jellyfin (need to be matched)
- Helps users see which playlists need track matching
This commit is contained in:
2026-02-03 17:48:49 -05:00
parent 363c9e6f1b
commit e51d569d79
2 changed files with 41 additions and 7 deletions

View File

@@ -1067,11 +1067,10 @@
}
tbody.innerHTML = data.playlists.map(p => {
// For now, we don't have local/external counts in the API response
// This will show "-" until we add that data
const localExternal = (p.localTracks !== undefined && p.externalTracks !== undefined)
? `${p.localTracks}/${p.externalTracks}`
: '-';
// Show local tracks and missing tracks
const localCount = p.localTracks || 0;
const missingCount = p.externalTracks || 0;
const localExternal = `${localCount} local / ${missingCount} missing`;
return `
<tr>