update image loading
This commit is contained in:
parent
da29fc8c68
commit
602d003e7b
|
@ -2405,17 +2405,20 @@ namespace MediaBrowser.Server.Implementations.Persistence
|
|||
cmd.Parameters.Add(cmd, "@IsFavorite", DbType.Boolean).Value = query.IsFavorite.Value;
|
||||
}
|
||||
|
||||
if (query.IsPlayed.HasValue)
|
||||
if (EnableJoinUserData(query))
|
||||
{
|
||||
if (query.IsPlayed.Value)
|
||||
if (query.IsPlayed.HasValue)
|
||||
{
|
||||
whereClauses.Add("(played=@IsPlayed)");
|
||||
if (query.IsPlayed.Value)
|
||||
{
|
||||
whereClauses.Add("(played=@IsPlayed)");
|
||||
}
|
||||
else
|
||||
{
|
||||
whereClauses.Add("(played is null or played=@IsPlayed)");
|
||||
}
|
||||
cmd.Parameters.Add(cmd, "@IsPlayed", DbType.Boolean).Value = query.IsPlayed.Value;
|
||||
}
|
||||
else
|
||||
{
|
||||
whereClauses.Add("(played is null or played=@IsPlayed)");
|
||||
}
|
||||
cmd.Parameters.Add(cmd, "@IsPlayed", DbType.Boolean).Value = query.IsPlayed.Value;
|
||||
}
|
||||
|
||||
if (query.IsResumable.HasValue)
|
||||
|
|
Loading…
Reference in New Issue
Block a user