Fixed autoplay local
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user