From 5ae409f67bd3b27e72a1e2fd2cb82ef90ef06be6 Mon Sep 17 00:00:00 2001 From: Marcel van der Veldt Date: Sun, 14 Dec 2025 16:21:09 +0100 Subject: [PATCH] Skip tracks in recently_played_items --- music_assistant/controllers/music.py | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/music_assistant/controllers/music.py b/music_assistant/controllers/music.py index 71cfca27..0ef6b416 100644 --- a/music_assistant/controllers/music.py +++ b/music_assistant/controllers/music.py @@ -562,7 +562,16 @@ class MusicController(CoreController): ) -> list[ItemMapping]: """Return a list of the last played items.""" if media_types is None: - media_types = MediaType.ALL + media_types = [ + MediaType.ALBUM, + MediaType.AUDIOBOOK, + MediaType.ARTIST, + MediaType.PLAYLIST, + MediaType.PODCAST, + MediaType.FOLDER, + MediaType.RADIO, + MediaType.GENRE, + ] media_types_str = "(" + ",".join(f'"{x}"' for x in media_types) + ")" available_providers = ("library", *self.get_unique_providers()) available_providers_str = "(" + ",".join(f'"{x}"' for x in available_providers) + ")" -- 2.34.1