mirror of
https://github.com/ajnart/homarr.git
synced 2026-01-30 11:19:12 +01:00
fix(plex): tv show links not working (#4272)
This commit is contained in:
@@ -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,
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user