From: Fabian Munkes <105975993+fmunkes@users.noreply.github.com> Date: Sun, 4 Jan 2026 11:51:56 +0000 (+0100) Subject: abs: parse "date added" into the MA library (#2923) X-Git-Url: https://git.kitaultman.com/?a=commitdiff_plain;h=e817ee2c5b4e807bfeacc83023462663579a91f9;p=music-assistant-server.git 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 --- 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