- |
+ |
Loading playlists...
|
@@ -762,6 +763,11 @@
-
+
+ User ID
+ -
+
+
Library ID
-
@@ -1126,6 +1132,7 @@
// Jellyfin settings
document.getElementById('config-jellyfin-url').textContent = data.jellyfin.url || '-';
document.getElementById('config-jellyfin-api-key').textContent = data.jellyfin.apiKey;
+ document.getElementById('config-jellyfin-user-id').textContent = data.jellyfin.userId || '(not set)';
document.getElementById('config-jellyfin-library-id').textContent = data.jellyfin.libraryId || '-';
// Sync settings
@@ -1347,6 +1354,22 @@
}
}
+ async function matchAllPlaylists() {
+ try {
+ showToast('Matching tracks for all playlists...', 'success');
+ const res = await fetch('/api/admin/playlists/match-all', { method: 'POST' });
+ const data = await res.json();
+
+ if (res.ok) {
+ showToast(data.message, 'success');
+ } else {
+ showToast(data.error || 'Failed to match tracks', 'error');
+ }
+ } catch (error) {
+ showToast('Failed to match tracks', 'error');
+ }
+ }
+
async function clearCache() {
if (!confirm('Clear all cached playlist data?')) return;