Update EmbyHelper.cs

The link provided for connecting to Jellyfin is not working. I updated the path to reflect the change and kept the link for not Jellyfin users. Issue #3691
This commit is contained in:
gwenvador 2020-07-29 17:07:36 +09:00 committed by GitHub
commit f5388bed9f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -7,16 +7,22 @@
string path = "item"; string path = "item";
if (isJellyfin) if (isJellyfin)
{ {
path = "itemdetails.html"; path = "details";
} }
if (customerServerUrl.HasValue()) if (customerServerUrl.HasValue())
{ {
if (isJellyfin)
{
return $"{customerServerUrl}#!/{path}?id={mediaId}";
}
else {
if (!customerServerUrl.EndsWith("/")) if (!customerServerUrl.EndsWith("/"))
{ {
return $"{customerServerUrl}/#!/{path}?id={mediaId}"; return $"{customerServerUrl}/#!/{path}?id={mediaId}";
} }
return $"{customerServerUrl}#!/{path}?id={mediaId}"; return $"{customerServerUrl}#!/{path}?id={mediaId}";
} }
}
else else
{ {
return $"https://app.emby.media/#!/{path}?id={mediaId}"; return $"https://app.emby.media/#!/{path}?id={mediaId}";