Commit 2467d43 1 parent 9c8ee86 commit 2467d43 Copy full SHA for 2467d43
File tree 2 files changed +6
-6
lines changed
2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -315,10 +315,10 @@ async fn resolve_local_media_path(
315
315
let uri: url:: Url = url:: Url :: parse ( url. unwrap ( ) . as_str ( ) ) . unwrap ( ) ;
316
316
let segments = uri. path_segments ( ) . unwrap ( ) . collect :: < Vec < & str > > ( ) ;
317
317
318
- let uuid = segments[ segments . len ( ) - 2 ] ;
319
- if context. token . is_none ( ) {
320
- context. token = Some ( segments. last ( ) . unwrap ( ) . to_string ( ) ) ;
321
- }
318
+ let uuid = segments. last ( ) . unwrap ( ) . replace ( ".jpg" , "" ) ;
319
+ // if context.token.is_none() {
320
+ // context.token = Some(segments.last().unwrap().to_string());
321
+ // }
322
322
323
323
let plex_client = PlexClient :: from_context ( & context) ;
324
324
let rurl = plex_client. get_hero_art ( uuid. to_string ( ) ) . await ;
Original file line number Diff line number Diff line change @@ -43,8 +43,8 @@ impl Transform for MediaStyleTransform {
43
43
}
44
44
guid = guid. replace ( "plex://" , "" ) ;
45
45
46
- let cover_art = Some ( format ! ( "/replex/image/hero/{}/{}" ,
47
- // let cover_art = Some(format!("{}://{}/ replex/image/hero/{}?X-Plex-Token={}",
46
+ // let cover_art = Some(format!("/replex/image/hero/{}/{}",
47
+ let cover_art = Some ( format ! ( "/ replex/image/hero/{}.jpg ?X-Plex-Token={}" ,
48
48
// match options.forwarded_proto {
49
49
// Some(v) => v,
50
50
// None => "http".to_string()
You can’t perform that action at this time.
0 commit comments