fix specials query

pull/702/head
Luke Pulverenti 11 years ago
parent 190be6311f
commit 28c252921f

@ -650,7 +650,7 @@ namespace MediaBrowser.Api.DefaultTheme
public static IEnumerable<T> Randomize<T>(this IEnumerable<T> sequence, string type = "none") public static IEnumerable<T> Randomize<T>(this IEnumerable<T> sequence, string type = "none")
where T : BaseItem where T : BaseItem
{ {
var hour = DateTime.Now.Hour + 2; var hour = DateTime.Now.Hour + DateTime.Now.Day + 2;
var typeCode = type.GetHashCode(); var typeCode = type.GetHashCode();

@ -1013,7 +1013,7 @@ namespace MediaBrowser.Api.UserLibrary
if (episode != null) if (episode != null)
{ {
var seasonNumber = episode.AirsAfterSeasonNumber ?? episode.AirsBeforeEpisodeNumber ?? episode.ParentIndexNumber; var seasonNumber = episode.AirsAfterSeasonNumber ?? episode.AirsBeforeSeasonNumber ?? episode.ParentIndexNumber;
return episode.PremiereDate.HasValue && seasonNumber.HasValue && seasonNumber.Value == val; return episode.PremiereDate.HasValue && seasonNumber.HasValue && seasonNumber.Value == val;
} }

Loading…
Cancel
Save