Skip to content

Commit 73240d6

Browse files
committed
fix: add token to images
1 parent 1897fd4 commit 73240d6

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/routes.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ pub fn route() -> Router {
156156
)
157157
.push(
158158
Router::new()
159-
.path("/image/hero/<type>/<uuid>/<token>.jpg")
159+
.path("/image/hero/<type>/<uuid>/<token>")
160160
// .path("/image/hero.jpg")
161161
.get(hero_image)
162162
//.get(proxy_request),

src/transform.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -801,8 +801,8 @@ impl Transform for MediaStyleTransform {
801801
.replace("plex://", "");
802802

803803
//let cover_art = item.get_hero_art(plex_client).await;
804-
let cover_art = Some(format!("{}/image/hero/{}/{}.jpg",
805-
options.host.clone().unwrap(),
804+
let cover_art = Some(format!("/image/hero/{}/{}",
805+
//options.host.clone().unwrap(),
806806
guid,
807807
options.token.clone().unwrap()
808808
));

0 commit comments

Comments
 (0)