update playlists
This commit is contained in:
parent
82c330cc13
commit
87ad77907b
5 changed files with 39 additions and 2 deletions
|
@ -37,7 +37,7 @@ impl Artist {
|
|||
|
||||
let artist_path = track_path.parent()?.parent()?;
|
||||
|
||||
for ext in ["png", "jpg", "jpeg", "avif"] {
|
||||
for ext in ["png", "jpg", "jpeg", "avif", "webp"] {
|
||||
let cover_file = artist_path.join(format!("artist.{ext}"));
|
||||
|
||||
if cover_file.exists() {
|
||||
|
|
|
@ -65,6 +65,7 @@ impl ToAPI for Playlist {
|
|||
serde_json::json!({
|
||||
"id": self._id,
|
||||
"owner": self.owner.id(),
|
||||
"visibility": serde_json::to_value(&self.visibility).unwrap(),
|
||||
"title": self.title,
|
||||
"tracks": self.tracks.iter().map(|x| x.id()).collect::<Vec<_>>()
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue