From e817ee2c5b4e807bfeacc83023462663579a91f9 Mon Sep 17 00:00:00 2001 From: Fabian Munkes <105975993+fmunkes@users.noreply.github.com> Date: Sun, 4 Jan 2026 12:51:56 +0100 Subject: [PATCH] abs: parse "date added" into the MA library (#2923) * Parse date_added into the library database * Process date_added in sync * Add date_added to filesystem provider * add date_added for abs --------- Co-authored-by: Marcel van der Veldt --- music_assistant/providers/audiobookshelf/parsers.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/music_assistant/providers/audiobookshelf/parsers.py b/music_assistant/providers/audiobookshelf/parsers.py index d146fb47..8502b64e 100644 --- a/music_assistant/providers/audiobookshelf/parsers.py +++ b/music_assistant/providers/audiobookshelf/parsers.py @@ -89,6 +89,8 @@ def parse_podcast( elif isinstance(abs_podcast, AbsLibraryItemMinifiedPodcast): mass_podcast.total_episodes = abs_podcast.media.num_episodes + mass_podcast.date_added = datetime.fromtimestamp(abs_podcast.added_at / 1000) + return mass_podcast @@ -265,4 +267,6 @@ def parse_audiobook( mass_audiobook.resume_position_ms = int(media_progress.current_time * 1000) mass_audiobook.fully_played = media_progress.is_finished + mass_audiobook.date_added = datetime.fromtimestamp(abs_audiobook.added_at / 1000) + return mass_audiobook -- 2.34.1