From b4ad40f64fe23294bc24fc1ff700dea34c961da6 Mon Sep 17 00:00:00 2001 From: JMARyA Date: Fri, 2 Aug 2024 21:14:55 +0200 Subject: [PATCH] update --- src/library/track.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/library/track.rs b/src/library/track.rs index 62f1be9..a2813bc 100644 --- a/src/library/track.rs +++ b/src/library/track.rs @@ -107,6 +107,7 @@ impl ToAPI for Track { json!({ "id": self._id, "title": self.title, + "track_number": self.meta.as_ref().map(|x| x.track_number()), "meta": serde_json::to_value(&self.meta).unwrap(), "album_id": self.album_id.as_ref().map(|x| x.id().to_string()), "album": album_title,