mirror of
https://github.com/SoPat712/allstarr.git
synced 2026-02-09 23:55:10 -05:00
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:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user