update queries
This commit is contained in:
parent
79b2415fdf
commit
51d00cf3fd
|
@ -132,11 +132,6 @@ namespace MediaBrowser.Controller.Entities
|
||||||
CollectionType.Playlists
|
CollectionType.Playlists
|
||||||
};
|
};
|
||||||
|
|
||||||
if (!ConfigurationManager.Configuration.EnableSharedCollectionViewImage)
|
|
||||||
{
|
|
||||||
standaloneTypes.Add(CollectionType.BoxSets);
|
|
||||||
}
|
|
||||||
|
|
||||||
var collectionFolder = folder as ICollectionFolder;
|
var collectionFolder = folder as ICollectionFolder;
|
||||||
|
|
||||||
if (collectionFolder == null)
|
if (collectionFolder == null)
|
||||||
|
@ -172,7 +167,9 @@ namespace MediaBrowser.Controller.Entities
|
||||||
CollectionType.Books,
|
CollectionType.Books,
|
||||||
CollectionType.MusicVideos,
|
CollectionType.MusicVideos,
|
||||||
CollectionType.HomeVideos,
|
CollectionType.HomeVideos,
|
||||||
CollectionType.Photos
|
CollectionType.Photos,
|
||||||
|
CollectionType.Music,
|
||||||
|
CollectionType.BoxSets
|
||||||
};
|
};
|
||||||
|
|
||||||
return types.Contains(viewType ?? string.Empty, StringComparer.OrdinalIgnoreCase);
|
return types.Contains(viewType ?? string.Empty, StringComparer.OrdinalIgnoreCase);
|
||||||
|
|
|
@ -1954,14 +1954,14 @@ namespace MediaBrowser.Server.Implementations.Persistence
|
||||||
|
|
||||||
if (query.TopParentIds.Length == 1)
|
if (query.TopParentIds.Length == 1)
|
||||||
{
|
{
|
||||||
whereClauses.Add("(TopParentId is null or TopParentId=@TopParentId)");
|
whereClauses.Add("(TopParentId=@TopParentId)");
|
||||||
cmd.Parameters.Add(cmd, "@TopParentId", DbType.String).Value = query.TopParentIds[0];
|
cmd.Parameters.Add(cmd, "@TopParentId", DbType.String).Value = query.TopParentIds[0];
|
||||||
}
|
}
|
||||||
if (query.TopParentIds.Length > 1)
|
if (query.TopParentIds.Length > 1)
|
||||||
{
|
{
|
||||||
var val = string.Join(",", query.TopParentIds.Select(i => "'" + i + "'").ToArray());
|
var val = string.Join(",", query.TopParentIds.Select(i => "'" + i + "'").ToArray());
|
||||||
|
|
||||||
whereClauses.Add("(TopParentId is null or TopParentId in (" + val + "))");
|
whereClauses.Add("(TopParentId in (" + val + "))");
|
||||||
}
|
}
|
||||||
|
|
||||||
if (query.AncestorIds.Length == 1)
|
if (query.AncestorIds.Length == 1)
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
using System.Reflection;
|
using System.Reflection;
|
||||||
|
|
||||||
//[assembly: AssemblyVersion("3.0.*")]
|
[assembly: AssemblyVersion("3.0.*")]
|
||||||
[assembly: AssemblyVersion("3.0.5781.2")]
|
//[assembly: AssemblyVersion("3.0.5781.2")]
|
||||||
|
|
Loading…
Reference in New Issue
Block a user