fix: tracks tab not being populated (#2637)
authoranatosun <33899455+anatosun@users.noreply.github.com>
Sun, 16 Nov 2025 09:16:15 +0000 (10:16 +0100)
committerGitHub <noreply@github.com>
Sun, 16 Nov 2025 09:16:15 +0000 (10:16 +0100)
music_assistant/providers/plex/__init__.py

index 0a2e85285fd8b36f2faf0de95efe859f538d2f14..aaa3317b75daff975330a8327f2cbca0285f444d 100644 (file)
@@ -798,7 +798,10 @@ class PlexProvider(MusicProvider):
             available = True
             content = plex_track.media[0].container
         else:
-            available = False
+            # For Plex (local library provider), assume tracks are available by default
+            # even if media attribute is not populated in the initial response.
+            # This prevents tracks from being skipped during library sync.
+            available = True
             content = None
         track = Track(
             item_id=plex_track.key,