Skip to content

Commit

Permalink
fix: hero images for web
Browse files Browse the repository at this point in the history
  • Loading branch information
lostb1t committed Sep 7, 2024
1 parent e07f484 commit 2388c05
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions src/transform/media_style.rs
Original file line number Diff line number Diff line change
Expand Up @@ -43,17 +43,17 @@ impl Transform for MediaStyleTransform {
}
guid = guid.replace("plex://", "");

let cover_art = Some(format!("/replex/image/hero/{}.jpg",
// let cover_art = Some(format!("/replex/image/hero/{}/{}",
// let cover_art = Some(format!("/replex/image/hero/{}?X-Plex-Token={}",
// match options.forwarded_proto {
// Some(v) => v,
// None => "http".to_string()
// },
// match options.forwarded_host {
// Some(v) => v,
// None => options.host.clone().unwrap()
// },
// options.host.clone().unwrap(),
let cover_art = Some(format!("{}://{}/replex/image/hero/{}.jpg",
match options.forwarded_proto {
Some(v) => v,
None => "http".to_string()
},
match options.forwarded_host {
Some(v) => v,
None => options.host.clone().unwrap()
},
guid,
// options.token.clone().unwrap()
));
Expand Down

0 comments on commit 2388c05

Please sign in to comment.