mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-09-07 20:08:59 +02:00
update movie suggestions
This commit is contained in:
parent
05fedd2b61
commit
ec23e084d0
1 changed files with 14 additions and 0 deletions
|
@ -2628,6 +2628,20 @@ namespace MediaBrowser.Server.Implementations.Persistence
|
||||||
|
|
||||||
whereClauses.Add("MediaType in (" + val + ")");
|
whereClauses.Add("MediaType in (" + val + ")");
|
||||||
}
|
}
|
||||||
|
if (query.ExcludeItemIds.Length > 0)
|
||||||
|
{
|
||||||
|
var excludeIds = new List<string>();
|
||||||
|
|
||||||
|
var index = 0;
|
||||||
|
foreach (var id in query.ExcludeItemIds)
|
||||||
|
{
|
||||||
|
excludeIds.Add("Guid <> @ExcludeId" + index);
|
||||||
|
cmd.Parameters.Add(cmd, "@ExcludeId" + index, DbType.Guid).Value = new Guid(id);
|
||||||
|
index++;
|
||||||
|
}
|
||||||
|
|
||||||
|
whereClauses.Add(string.Join(" AND ", excludeIds.ToArray()));
|
||||||
|
}
|
||||||
|
|
||||||
if (query.AlbumNames.Length > 0)
|
if (query.AlbumNames.Length > 0)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue