Skip to content

Commit 9ffb41a

Browse files
committed
fix: hero images for web
1 parent c97f125 commit 9ffb41a

File tree

1 file changed

+10
-9
lines changed

1 file changed

+10
-9
lines changed

src/transform/media_style.rs

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

46-
let cover_art = Some(format!("{}://{}/replex/image/hero/{}?X-Plex-Token={}",
47-
match options.forwarded_proto {
48-
Some(v) => v,
49-
None => "http".to_string()
50-
},
51-
match options.forwarded_host {
52-
Some(v) => v,
53-
None => options.host.clone().unwrap()
54-
},
46+
let cover_art = Some(format!("/replex/image/hero/{}?X-Plex-Token={}",
47+
// 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+
// },
5556
// options.host.clone().unwrap(),
5657
guid,
5758
options.token.clone().unwrap()

0 commit comments

Comments
 (0)