From 9117dc69d224e3980b0169ba746e0062ba0738c1 Mon Sep 17 00:00:00 2001 From: lostb1t Date: Thu, 11 Jul 2024 15:24:28 +0200 Subject: [PATCH] fix: test --- README.md | 3 --- src/routes.rs | 9 +++++---- 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 2879743..58d8545 100644 --- a/README.md +++ b/README.md @@ -12,7 +12,6 @@ Remix your plex recommendations. - Auto load artwork for hero styles. - Disable user state: remove unplayed badges from row items. - Disable leaf count: remove episode count from artwork. -- Hot cache: auto refreshed cache for home and library recommended. - Force maximum quality. - Auto select version based on resolution of the client. - Fallback to different version if selected version is video transcoding. @@ -87,8 +86,6 @@ Settings are set via [environment variables](https://kinsta.com/knowledgebase/wh | REPLEX_REDIRECT_STREAMS | false | Redirect streams to another endpoint. | | REPLEX_REDIRECT_STREAMS_HOST | REPLEX_HOST | Alternative streams endpoint | | REPLEX_CACHE_TTL | 1800 | Time to live for caches in seconds. Set to 0 to disable (not recommended). | -| REPLEX_CACHE_ROWS | true | Cache rows | -| REPLEX_CACHE_ROWS_REFRESH | true | Auto refresh cached rows | ## Mixed rows diff --git a/src/routes.rs b/src/routes.rs index 3adb091..3281a99 100644 --- a/src/routes.rs +++ b/src/routes.rs @@ -399,10 +399,11 @@ pub async fn hero_image( res.status_code(StatusCode::NOT_FOUND); return } - let uri = url.unwrap().parse::().unwrap();; - req.set_uri(uri); - let proxy = proxy("https://metadata-static.plex.tv".to_string()); - proxy.handle(req, depot, res, ctrl).await; + // let uri = url.unwrap().parse::().unwrap();; + // req.set_uri(uri); + // let proxy = proxy("https://metadata-static.plex.tv".to_string()); + // proxy.handle(req, depot, res, ctrl).await; + res.render(Redirect::found(url.unwrap())); } // if directplay fails we remove it.