fix: a small bug with child formatting

This commit is contained in:
Lys 2023-11-27 01:15:48 +02:00
parent afd0ba6e86
commit 2f8d2a1b3c
Signed by: lyssieth
GPG key ID: C9CF3D614FAA3940

View file

@ -79,7 +79,7 @@ impl Child {
.created .created
.format(&Iso8601::DEFAULT) .format(&Iso8601::DEFAULT)
.expect("Failed to format date"), .expect("Failed to format date"),
album_id: Some(format!("al-{}", album.id)), album_id: Some(album.id.clone()),
artist_id: track.artist_id.map(|v| format!("ar-{v}",)), artist_id: track.artist_id.map(|v| format!("ar-{v}",)),
artist: artist.name.clone(), artist: artist.name.clone(),
child_type: "music".to_string(), child_type: "music".to_string(),