mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-09-06 13:57:14 -04:00
fix specials query
This commit is contained in:
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")
|
||||
where T : BaseItem
|
||||
{
|
||||
var hour = DateTime.Now.Hour + 2;
|
||||
var hour = DateTime.Now.Hour + DateTime.Now.Day + 2;
|
||||
|
||||
var typeCode = type.GetHashCode();
|
||||
|
||||
|
@ -1013,7 +1013,7 @@ namespace MediaBrowser.Api.UserLibrary
|
||||
|
||||
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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user