mirror of
https://github.com/fallenbagel/jellyseerr.git
synced 2026-01-01 12:18:35 -05:00
feat: add emby detail url support
This commit is contained in:
@@ -189,19 +189,14 @@ class Media {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
const pageName =
|
||||||
|
process.env.JELLYFIN_TYPE === 'emby' ? 'item' : 'details';
|
||||||
|
const { hostname, serverId } = getSettings().jellyfin;
|
||||||
if (this.jellyfinMediaId) {
|
if (this.jellyfinMediaId) {
|
||||||
this.mediaUrl = `${
|
this.mediaUrl = `${hostname}/web/index.html#!/${pageName}?id=${this.jellyfinMediaId}&context=home&serverId=${serverId}`;
|
||||||
getSettings().jellyfin.hostname
|
|
||||||
}/web/index.html#!/details?id=${
|
|
||||||
this.jellyfinMediaId
|
|
||||||
}&context=home&serverId=${getSettings().jellyfin.serverId}`;
|
|
||||||
}
|
}
|
||||||
if (this.jellyfinMediaId4k) {
|
if (this.jellyfinMediaId4k) {
|
||||||
this.mediaUrl4k = `${
|
this.mediaUrl4k = `${hostname}/web/index.html#!/${pageName}?id=${this.jellyfinMediaId4k}&context=home&serverId=${serverId}`;
|
||||||
getSettings().jellyfin.hostname
|
|
||||||
}/web/index.html#!/details?id=${
|
|
||||||
this.jellyfinMediaId4k
|
|
||||||
}&context=home&serverId=${getSettings().jellyfin.serverId}`;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user