mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-08-25 07:25:22 -07:00
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:
parent
29f7403919
commit
f5388bed9f
1 changed files with 10 additions and 4 deletions
|
@ -7,15 +7,21 @@
|
||||||
string path = "item";
|
string path = "item";
|
||||||
if (isJellyfin)
|
if (isJellyfin)
|
||||||
{
|
{
|
||||||
path = "itemdetails.html";
|
path = "details";
|
||||||
}
|
}
|
||||||
if (customerServerUrl.HasValue())
|
if (customerServerUrl.HasValue())
|
||||||
{
|
{
|
||||||
if (!customerServerUrl.EndsWith("/"))
|
if (isJellyfin)
|
||||||
{
|
{
|
||||||
return $"{customerServerUrl}/#!/{path}?id={mediaId}";
|
|
||||||
}
|
|
||||||
return $"{customerServerUrl}#!/{path}?id={mediaId}";
|
return $"{customerServerUrl}#!/{path}?id={mediaId}";
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
if (!customerServerUrl.EndsWith("/"))
|
||||||
|
{
|
||||||
|
return $"{customerServerUrl}/#!/{path}?id={mediaId}";
|
||||||
|
}
|
||||||
|
return $"{customerServerUrl}#!/{path}?id={mediaId}";
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue