Audible: inverse of the suppoorted content type rule (#2106)
authorZtripez <reg@otherland.nu>
Mon, 7 Apr 2025 21:52:00 +0000 (23:52 +0200)
committerGitHub <noreply@github.com>
Mon, 7 Apr 2025 21:52:00 +0000 (23:52 +0200)
music_assistant/providers/audible/audible_helper.py

index 3eb37da0c68d1fa07630a9b41e089781ce83daa9..f4181a9e2760956e05e15d48c1506016b38565e6 100644 (file)
@@ -76,7 +76,7 @@ class AudibleHelper:
     ) -> tuple[Audiobook | None, int]:
         """Process a single audiobook item from the library."""
         content_type = audiobook_data.get("content_delivery_type", "")
-        if content_type in ("PodcastParent", "NonAudio"):
+        if content_type not in ("SinglePartBook",):
             self.logger.debug(
                 "Skipping non-audiobook item: %s (%s)",
                 audiobook_data.get("title", "Unknown"),