aboutsummaryrefslogtreecommitdiff
path: root/server/src/compat
diff options
context:
space:
mode:
authormetamuffin <metamuffin@disroot.org>2025-11-30 12:32:44 +0100
committermetamuffin <metamuffin@disroot.org>2025-11-30 12:32:44 +0100
commit8174d129fbabd2d39323678d11d868893ddb429a (patch)
tree7979a528114cd5fb827f748f678a916e8e8eeddc /server/src/compat
parent5db15c323d76dca9ae71b0204d63dcb09fbbcbc5 (diff)
downloadjellything-8174d129fbabd2d39323678d11d868893ddb429a.tar
jellything-8174d129fbabd2d39323678d11d868893ddb429a.tar.bz2
jellything-8174d129fbabd2d39323678d11d868893ddb429a.tar.zst
new sync cache
Diffstat (limited to 'server/src/compat')
-rw-r--r--server/src/compat/jellyfin/mod.rs16
1 files changed, 12 insertions, 4 deletions
diff --git a/server/src/compat/jellyfin/mod.rs b/server/src/compat/jellyfin/mod.rs
index 27df1aa..b18d304 100644
--- a/server/src/compat/jellyfin/mod.rs
+++ b/server/src/compat/jellyfin/mod.rs
@@ -9,10 +9,10 @@ use crate::{helper::A, ui::error::MyResult};
use anyhow::anyhow;
use jellycommon::{
api::{NodeFilterSort, SortOrder, SortProperty},
- routes::{u_asset, u_node_slug_backdrop, u_node_slug_poster},
+ routes::{u_asset, u_node_image},
stream::{StreamContainer, StreamSpec},
user::{NodeUserData, WatchedState},
- MediaInfo, Node, NodeID, NodeKind, SourceTrack, SourceTrackKind, Visibility,
+ MediaInfo, Node, NodeID, NodeKind, PictureSlot, SourceTrack, SourceTrackKind, Visibility,
};
use jellylogic::{
login::login_logic,
@@ -169,7 +169,11 @@ pub fn r_jellyfin_items_image_primary(
tag: String,
) -> Redirect {
if tag == "poster" {
- Redirect::permanent(u_node_slug_poster(id, fillWidth.unwrap_or(1024)))
+ Redirect::permanent(u_node_image(
+ id,
+ PictureSlot::Cover,
+ fillWidth.unwrap_or(1024),
+ ))
} else {
Redirect::permanent(u_asset(&tag, fillWidth.unwrap_or(1024)))
}
@@ -182,7 +186,11 @@ pub fn r_jellyfin_items_images_backdrop(
id: &str,
maxWidth: Option<usize>,
) -> Redirect {
- Redirect::permanent(u_node_slug_backdrop(id, maxWidth.unwrap_or(1024)))
+ Redirect::permanent(u_node_image(
+ id,
+ PictureSlot::Backdrop,
+ maxWidth.unwrap_or(1024),
+ ))
}
#[get("/Items/<id>")]