Hide subscribe button when request is available

This commit is contained in:
sephrat 2022-04-19 11:49:15 +02:00
parent eea8663f7d
commit a0e0ae1da3
3 changed files with 12 additions and 3 deletions

View file

@ -533,7 +533,10 @@ namespace Ombi.Core.Engine
}
else
{
x.ShowSubscribe = true;
if (!x.Available && !x.Available4K)
{
x.ShowSubscribe = true;
}
var hasSub = sub.FirstOrDefault(r => r.RequestId == x.Id);
x.Subscribed = hasSub != null;
}