abs: parse "date added" into the MA library (#2923)
authorFabian Munkes <105975993+fmunkes@users.noreply.github.com>
Sun, 4 Jan 2026 11:51:56 +0000 (12:51 +0100)
committerGitHub <noreply@github.com>
Sun, 4 Jan 2026 11:51:56 +0000 (12:51 +0100)
* 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 <m.vanderveldt@outlook.com>
music_assistant/providers/audiobookshelf/parsers.py

index d146fb47448be15bf53527ea1c9940b5c9c08767..8502b64e86303fedfd611e69380a6795a6155e27 100644 (file)
@@ -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