added download emoji for music

This commit is contained in:
2026-02-16 17:15:03 -06:00
parent 26a79ecb7e
commit 60decb4499

View File

@@ -2799,13 +2799,14 @@ fn is_in_progress_fast(it: &core::jellyfin::JfItem) -> bool {
}
fn emoji_prefix_for(app: &App, it: &core::jellyfin::JfItem) -> String {
// Keep your existing behavior: no emojis for music items (optional).
// If you DO want 💾 for music too, remove this early return.
// Music: show only the local-download indicator (💾) and never show played/in-progress.
// Everything else keeps the existing behavior (💾 + ✅/🟠).
let downloaded = is_downloaded(app, it);
if is_music_item(it) {
return String::new();
return if downloaded { "💾 ".to_string() } else { String::new() };
}
let downloaded = is_downloaded(app, it);
let played = is_played(it);
let inprog = is_in_progress_fast(it);