|
|
@ -68,11 +68,11 @@ namespace Ombi.Core.Rule.Rules.Search
|
|
|
|
var server = s.Servers.FirstOrDefault(x => x.ServerHostname != null);
|
|
|
|
var server = s.Servers.FirstOrDefault(x => x.ServerHostname != null);
|
|
|
|
if ((server?.ServerHostname ?? string.Empty).HasValue())
|
|
|
|
if ((server?.ServerHostname ?? string.Empty).HasValue())
|
|
|
|
{
|
|
|
|
{
|
|
|
|
obj.EmbyUrl = $"{server.ServerHostname}#!/itemdetails.html?id={item.EmbyId}";
|
|
|
|
obj.EmbyUrl = EmbyHelper.GetEmbyMediaUrl(item.EmbyId, server?.ServerHostname);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else
|
|
|
|
else
|
|
|
|
{
|
|
|
|
{
|
|
|
|
obj.EmbyUrl = $"https://app.emby.media/#!/itemdetails.html?id={item.EmbyId}";
|
|
|
|
obj.EmbyUrl = EmbyHelper.GetEmbyMediaUrl(item.EmbyId);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if (obj.Type == RequestType.TvShow)
|
|
|
|
if (obj.Type == RequestType.TvShow)
|
|
|
|