Skip to content

Commit

Permalink
Merge pull request #71 from jsl9208/feat-emby-mediaurl
Browse files Browse the repository at this point in the history
feat: add emby detail url support
  • Loading branch information
fallenbagel authored Apr 15, 2022
2 parents 902a033 + a2c27cf commit 7a9d7a4
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions server/entity/Media.ts
Original file line number Diff line number Diff line change
Expand Up @@ -163,11 +163,12 @@ class Media {
this.mediaUrl4k = `https://app.plex.tv/desktop#!/server/${settings.plex.machineId}/details?key=%2Flibrary%2Fmetadata%2F${this.ratingKey4k}`;
}
} else {
const pageName = process.env.JELLYFIN_TYPE === 'emby' ? 'item' : 'details';
if (this.jellyfinMediaId) {
this.mediaUrl = `${settings.jellyfin.hostname}/web/index.html#!/details?id=${this.jellyfinMediaId}&context=home&serverId=${settings.jellyfin.serverId}`;
this.mediaUrl = `${settings.jellyfin.hostname}/web/index.html#!/${pageName}?id=${this.jellyfinMediaId}&context=home&serverId=${settings.jellyfin.serverId}`;
}
if (this.jellyfinMediaId4k) {
this.mediaUrl4k = `${settings.jellyfin.hostname}/web/index.html#!/details?id=${this.jellyfinMediaId4k}&context=home&serverId=${settings.jellyfin.serverId}`;
this.mediaUrl4k = `${settings.jellyfin.hostname}/web/index.html#!/${pageName}?id=${this.jellyfinMediaId4k}&context=home&serverId=${settings.jellyfin.serverId}`;
}
}
}
Expand Down

0 comments on commit 7a9d7a4

Please sign in to comment.