From c1e92dd2648d68d0e2ae7ebdbab331e0aaa34964 Mon Sep 17 00:00:00 2001 From: sarendsen Date: Sat, 12 Aug 2023 11:40:49 +0200 Subject: [PATCH] fix: also redirect direc streams --- Makefile | 2 +- src/routes.rs | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index fa5dd72..d5fe395 100644 --- a/Makefile +++ b/Makefile @@ -31,7 +31,7 @@ docker-run: run: - REPLEX_REDIRECT_STREAMS=0 REPLEX_DISABLE_RELATED=1 REPLEX_DISABLE_LEAF_COUNT=0 REPLEX_DISABLE_USER_STATE=1 REPLEX_ENABLE_CONSOLE=0 REPLEX_CACHE_TTL=300 REPLEX_HOST=https://46-4-30-217.01b0839de64b49138531cab1bf32f7c2.plex.direct:42405 RUST_LOG="info,replex=info" cargo watch -x run + REPLEX_REDIRECT_STREAMS=0 REPLEX_DISABLE_RELATED=1 REPLEX_DISABLE_LEAF_COUNT=0 REPLEX_DISABLE_USER_STATE=1 REPLEX_ENABLE_CONSOLE=0 REPLEX_CACHE_TTL=0 REPLEX_HOST=https://46-4-30-217.01b0839de64b49138531cab1bf32f7c2.plex.direct:42405 RUST_LOG="info,replex=info" cargo watch -x run # run: # REPLEX_ENABLE_CONSOLE=0 REPLEX_CACHE_TTL=0 REPLEX_HOST=https://46-4-30-217.01b0839de64b49138531cab1bf32f7c2.plex.direct:42405 RUST_LOG="info" cargo run diff --git a/src/routes.rs b/src/routes.rs index e245b92..b7ae854 100644 --- a/src/routes.rs +++ b/src/routes.rs @@ -72,6 +72,9 @@ pub fn route() -> Router { .push( Router::with_path("/statistics/bandwidth<**rest>") .handle(redirect_stream), + ).push( + Router::with_path("/library/parts///file.") + .handle(redirect_stream), ); }