feat(models,core): playlist revision evidence and track-ids fetch

Playlist and PlaylistWithTrackIds deserialize the API updated_at stamp
(absent on some list shapes, hence optional), and the core facade
exposes the lightweight playlist/get?extra=track_ids fetch the
membership hydrator drives.

cc
This commit is contained in:
vicrodh committed 2026-08-30 16:38:13 -06:00
1 parent e1138756e6
commit 44df1e53a4
4 files changed
+30 -12

No files matched your search

+7
View File
@@ -828,6 +828,10 @@ pub struct Playlist {
pub image_rectangle_mini: Option<Vec<String>>,
pub slug: Option<String>,
pub users_count: Option<u32>,
/// API revision stamp (unix seconds). The membership index reads it as
/// change evidence when the API provides it; absent on some list shapes.
#[serde(default)]
pub updated_at: Option<i64>,
}
#[derive(Debug, Clone, Serialize, Deserialize, Default)]
@@ -869,6 +873,9 @@ pub struct PlaylistWithTrackIds {
pub images300: Option<Vec<String>>,
pub slug: Option<String>,
pub users_count: Option<u32>,
/// API revision stamp (unix seconds), when the response carries one.
#[serde(default)]
pub updated_at: Option<i64>,
}
/// Result of checking for duplicate tracks in a playlist