fix streaming glitch

This commit is contained in:
2026-09-13 14:02:00 -05:00
parent 8c3409ebb5
commit f1c3531859
2 changed files with 3 additions and 2 deletions
+1
View File
@@ -1,3 +1,4 @@
/target
/*.zip
*.zip
.claude
+2 -2
View File
@@ -2416,7 +2416,7 @@ fn spawn_mpv(cfg: &core::config::Config, first_item_id: &str) -> Result<MpvSessi
let base = cfg.base_url.trim_end_matches('/');
let url = format!("{}/Items/{}/Download", base, first_item_id);
let header = format!("X-Emby-Token: {}", token);
let header = format!("Authorization: MediaBrowser Token=\"{}\"", token);
let sock = mpv_socket_path();
// If a stale socket exists, remove it.
@@ -2957,7 +2957,7 @@ fn spawn_mpv_url(cfg: &core::config::Config, url: &str) -> Result<MpvSession, St
.as_deref()
.ok_or_else(|| "Missing access_token (login again)".to_string())?;
let header = format!("X-Emby-Token: {}", token);
let header = format!("Authorization: MediaBrowser Token=\"{}\"", token);
let sock = mpv_socket_path();
let _ = std::fs::remove_file(&sock);