Fixed autoplay local

This commit is contained in:
2026-02-16 17:33:26 -06:00
parent 8f4be282ee
commit f40339981a

View File

@@ -2170,8 +2170,12 @@ fn autoplay_tick(app: &mut App) {
}
};
// Load next item
let url = build_jellyfin_play_url(&cfg, &next_id);
// Load next item (prefer local if available)
let url = if let Some(p) = crate::core::downloads::local_media_path_for_item_id(&next_id) {
p.to_string_lossy().to_string()
} else {
build_jellyfin_play_url(&cfg, &next_id)
};
if let Err(e) = mpv_load_url(&cfg, mpv, &url) {
app.autoplay = false;