mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-08-14 02:26:55 -07:00
merge develop into v4
This commit is contained in:
commit
a5139dd25c
59 changed files with 577 additions and 321 deletions
|
@ -2,19 +2,24 @@
|
|||
{
|
||||
public class EmbyHelper
|
||||
{
|
||||
public static string GetEmbyMediaUrl(string mediaId, string customerServerUrl = null)
|
||||
public static string GetEmbyMediaUrl(string mediaId, string customerServerUrl = null, bool isJellyfin = false)
|
||||
{
|
||||
string path = "item/item";
|
||||
if (isJellyfin)
|
||||
{
|
||||
path = "itemdetails";
|
||||
}
|
||||
if (customerServerUrl.HasValue())
|
||||
{
|
||||
if(!customerServerUrl.EndsWith("/"))
|
||||
if (!customerServerUrl.EndsWith("/"))
|
||||
{
|
||||
return $"{customerServerUrl}/#!/itemdetails.html?id={mediaId}";
|
||||
}
|
||||
return $"{customerServerUrl}#!/itemdetails.html?id={mediaId}";
|
||||
return $"{customerServerUrl}/#!/{path}.html?id={mediaId}";
|
||||
}
|
||||
return $"{customerServerUrl}#!/{path}.html?id={mediaId}";
|
||||
}
|
||||
else
|
||||
{
|
||||
return $"https://app.emby.media/#!/itemdetails.html?id={mediaId}";
|
||||
return $"https://app.emby.media/#!/{path}.html?id={mediaId}";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue