Commit 1897fd4 1 parent e63c87a commit 1897fd4 Copy full SHA for 1897fd4
File tree 2 files changed +5
-4
lines changed
2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -156,7 +156,7 @@ pub fn route() -> Router {
156
156
)
157
157
. push (
158
158
Router :: new ( )
159
- . path ( "/image/hero/<type>/<uuid>/<** token>" )
159
+ . path ( "/image/hero/<type>/<uuid>/<token>.jpg " )
160
160
// .path("/image/hero.jpg")
161
161
. get ( hero_image)
162
162
//.get(proxy_request),
@@ -388,8 +388,9 @@ pub async fn hero_image(
388
388
// dbg!(&req);
389
389
let t = req. param :: < String > ( "type" ) . unwrap ( ) ;
390
390
let uuid = req. param :: < String > ( "uuid" ) . unwrap ( ) ;
391
- let token = req. param :: < String > ( "**token" ) ;
392
- dbg ! ( & token) ;
391
+ let token = req. param :: < String > ( "token" ) ;
392
+
393
+ // some clients do not send token for an image request, so we include it in the urk ourself.
393
394
if token. is_some ( ) {
394
395
params. token = token;
395
396
}
Original file line number Diff line number Diff line change @@ -801,7 +801,7 @@ impl Transform for MediaStyleTransform {
801
801
. replace ( "plex://" , "" ) ;
802
802
803
803
//let cover_art = item.get_hero_art(plex_client).await;
804
- let cover_art = Some ( format ! ( "{}/image/hero/{}/{}" ,
804
+ let cover_art = Some ( format ! ( "{}/image/hero/{}/{}.jpg " ,
805
805
options. host. clone( ) . unwrap( ) ,
806
806
guid,
807
807
options. token. clone( ) . unwrap( )
You can’t perform that action at this time.
0 commit comments