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";
if (isJellyfin)
{
path = "itemdetails.html";
path = "details";
}
if (customerServerUrl.HasValue())
{
if (isJellyfin)
{
return $"{customerServerUrl}#!/{path}?id={mediaId}";
}
else {
if (!customerServerUrl.EndsWith("/"))
{
return $"{customerServerUrl}/#!/{path}?id={mediaId}";
}
return $"{customerServerUrl}#!/{path}?id={mediaId}";
}
}
else
{
return $"https://app.emby.media/#!/{path}?id={mediaId}";