Fix: Fix Library selection wont show after server connected

This commit is contained in:
2025-12-06 15:20:10 +09:00
parent 06f4c0683a
commit fcbf534f5d
2 changed files with 14 additions and 8 deletions
+1 -1
View File
@@ -38,7 +38,7 @@ const mapPlaylist = (item: any): Playlist => ({
const mapLibrary = (item: any): PlexLibrary => ({
id: item.id ?? item.title,
title: item.title ?? item.id,
type: item.type ?? 'artist',
type: item.type || item.libraryType || item.library_type || item.section?.type || '',
});
// Helper function to map raw rules array to ReplacementRule[]