added download emoji for music
This commit is contained in:
@@ -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 {
|
fn emoji_prefix_for(app: &App, it: &core::jellyfin::JfItem) -> String {
|
||||||
// Keep your existing behavior: no emojis for music items (optional).
|
// Music: show only the local-download indicator (💾) and never show played/in-progress.
|
||||||
// If you DO want 💾 for music too, remove this early return.
|
// Everything else keeps the existing behavior (💾 + ✅/🟠).
|
||||||
|
let downloaded = is_downloaded(app, it);
|
||||||
|
|
||||||
if is_music_item(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 played = is_played(it);
|
||||||
let inprog = is_in_progress_fast(it);
|
let inprog = is_in_progress_fast(it);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user