Skip to content

Commit 2388c05

Browse files
committed
fix: hero images for web
1 parent e07f484 commit 2388c05

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

src/transform/media_style.rs

+10-10
Original file line numberDiff line numberDiff line change
@@ -43,17 +43,17 @@ impl Transform for MediaStyleTransform {
4343
}
4444
guid = guid.replace("plex://", "");
4545

46-
let cover_art = Some(format!("/replex/image/hero/{}.jpg",
46+
// let cover_art = Some(format!("/replex/image/hero/{}/{}",
4747
// let cover_art = Some(format!("/replex/image/hero/{}?X-Plex-Token={}",
48-
// match options.forwarded_proto {
49-
// Some(v) => v,
50-
// None => "http".to_string()
51-
// },
52-
// match options.forwarded_host {
53-
// Some(v) => v,
54-
// None => options.host.clone().unwrap()
55-
// },
56-
// options.host.clone().unwrap(),
48+
let cover_art = Some(format!("{}://{}/replex/image/hero/{}.jpg",
49+
match options.forwarded_proto {
50+
Some(v) => v,
51+
None => "http".to_string()
52+
},
53+
match options.forwarded_host {
54+
Some(v) => v,
55+
None => options.host.clone().unwrap()
56+
},
5757
guid,
5858
// options.token.clone().unwrap()
5959
));

0 commit comments

Comments
 (0)