mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-03-12 04:35:27 -07:00
24 lines
817 B
C#
24 lines
817 B
C#
namespace Ombi.Helpers
|
|
{
|
|
public static class EmbyHelper
|
|
{
|
|
public static string GetEmbyMediaUrl(string mediaId, string serverId, string customerServerUrl = null)
|
|
{
|
|
//web/index.html#!/details|item
|
|
string path = "item";
|
|
if (customerServerUrl.HasValue())
|
|
{
|
|
if (!customerServerUrl.EndsWith("/"))
|
|
{
|
|
return $"{customerServerUrl}/web/index.html#!/{path}?id={mediaId}&serverId={serverId}";
|
|
}
|
|
return $"{customerServerUrl}web/index.html#!/{path}?id={mediaId}&serverId={serverId}";
|
|
}
|
|
else
|
|
{
|
|
return $"https://app.emby.media/web/index.html#!/{path}?id={mediaId}&serverId={serverId}";
|
|
}
|
|
}
|
|
}
|
|
}
|