Skip to content

Commit

Permalink
fix: time rate
Browse files Browse the repository at this point in the history
  • Loading branch information
lostb1t committed Jul 26, 2024
1 parent 17c87a3 commit 8a55aab
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand Down
3 changes: 2 additions & 1 deletion src/plex_client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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 {
Expand Down

0 comments on commit 8a55aab

Please sign in to comment.