diff --git a/Makefile b/Makefile index 1f132cd..995faf3 100644 --- a/Makefile +++ b/Makefile @@ -18,7 +18,7 @@ docker-run: run: REPLEX_DISABLE_CONTINUE_WATCHING=0 \ - REPLEX_AUTO_SELECT_VERSION=0 \ + REPLEX_AUTO_SELECT_VERSION=1 \ REPLEX_VIDEO_TRANSCODE_FALLBACK_FOR="4k" \ REPLEX_FORCE_MAXIMUM_QUALITY=0 \ REPLEX_CACHE_ROWS=0 \ diff --git a/src/plex_client.rs b/src/plex_client.rs index cc2cf50..91a9486 100644 --- a/src/plex_client.rs +++ b/src/plex_client.rs @@ -98,6 +98,7 @@ impl PlexClient { //let mut headers = req.headers_mut().clone(); //headers.remove(ACCEPT); // remove accept as we always do json request //dbg!(&headers); + //dbg!(&url); let res = self .http_client .request(req.method().clone(), url) @@ -450,7 +451,7 @@ impl PlexClient { ("X-Real-Ip", context.real_ip.clone()), (&ACCEPT.as_str(), Some("application/json".to_string())), (&ACCEPT_LANGUAGE.as_str(), Some("en-US".to_string())), - (http::header::HOST.as_str(), Some(config.host.clone().unwrap())), + //(http::header::HOST.as_str(), Some(config.host.clone().unwrap())), ]); for (key, val) in headers_map {