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),
|
rating: item.rating?.toFixed(1),
|
||||||
tags: item.Genre?.map((genre) => genre.tag) ?? [],
|
tags: item.Genre?.map((genre) => genre.tag) ?? [],
|
||||||
href: super
|
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(),
|
.toString(),
|
||||||
length: item.duration ? Math.round(item.duration / 1000) : undefined,
|
length: item.duration ? Math.round(item.duration / 1000) : undefined,
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user