Fix -- Use validTo time for live streams
This commit is contained in:
parent
31b2402a96
commit
d48b515898
@ -231,7 +231,8 @@ public class SRFPlayChannel : IChannel, IHasCacheKey
|
||||
.Where(p => p.Urn != null &&
|
||||
!string.IsNullOrEmpty(p.Title) &&
|
||||
p.ValidFrom != null &&
|
||||
p.ValidFrom.Value.ToUniversalTime() <= weekFromNow)
|
||||
p.ValidFrom.Value.ToUniversalTime() <= weekFromNow &&
|
||||
(p.ValidTo == null || p.ValidTo.Value.ToUniversalTime() > now))
|
||||
.OrderBy(p => p.ValidFrom)
|
||||
.ToList();
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user