From 2cfad10a820064d5f10f9b4eb085406fda15e776 Mon Sep 17 00:00:00 2001 From: tidusjar Date: Sat, 12 Oct 2019 21:01:51 +0100 Subject: [PATCH] Fixed #3078 --- src/Ombi.Core/Rule/Rules/Search/EmbyAvailabilityRule.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Ombi.Core/Rule/Rules/Search/EmbyAvailabilityRule.cs b/src/Ombi.Core/Rule/Rules/Search/EmbyAvailabilityRule.cs index f80bded7a..50fff3eb6 100644 --- a/src/Ombi.Core/Rule/Rules/Search/EmbyAvailabilityRule.cs +++ b/src/Ombi.Core/Rule/Rules/Search/EmbyAvailabilityRule.cs @@ -68,11 +68,11 @@ namespace Ombi.Core.Rule.Rules.Search var server = s.Servers.FirstOrDefault(x => x.ServerHostname != null); if ((server?.ServerHostname ?? string.Empty).HasValue()) { - obj.EmbyUrl = $"{server.ServerHostname}#!/itemdetails.html?id={item.EmbyId}"; + obj.EmbyUrl = EmbyHelper.GetEmbyMediaUrl(item.EmbyId, server?.ServerHostname); } else { - obj.EmbyUrl = $"https://app.emby.media/#!/itemdetails.html?id={item.EmbyId}"; + obj.EmbyUrl = EmbyHelper.GetEmbyMediaUrl(item.EmbyId); } if (obj.Type == RequestType.TvShow)