fix(plex): tv show links not working (#4272)

This commit is contained in:
Meier Lukas
2025-10-13 23:52:52 +02:00
committed by GitHub
parent cccec5e195
commit a80c5d40e0

View File

@@ -142,7 +142,10 @@ export class PlexIntegration extends Integration implements IMediaServerIntegrat
rating: item.rating?.toFixed(1),
tags: item.Genre?.map((genre) => genre.tag) ?? [],
href: super
.url(`/web/index.html#!/server/${machineIdentifier}/details?key=${encodeURIComponent(item.key)}`)
.url(
// Url with children on the end results in infinite loading screen, see https://github.com/homarr-labs/homarr/issues/4078
`/web/index.html#!/server/${machineIdentifier}/details?key=${encodeURIComponent(item.key.replace("/children", ""))}`,
)
.toString(),
length: item.duration ? Math.round(item.duration / 1000) : undefined,
};