Add update behavior settings to /playing

This commit is contained in:
DaXcess
2024-08-19 10:50:17 +02:00
parent c5ae089930
commit c7cb26a1f8
4 changed files with 129 additions and 30 deletions
+7
View File
@@ -65,6 +65,13 @@ impl PlaybackInfo {
}
}
pub fn album_name(&self) -> Option<String> {
match &self.audio_item.unique_fields {
UniqueFields::Episode { .. } => None,
UniqueFields::Track { album, .. } => Some(album.to_string()),
}
}
pub fn thumbnail(&self) -> String {
self.audio_item
.covers