fix dlna playlist
This commit is contained in:
parent
79a7e907d4
commit
8523d0aa2b
|
@ -140,8 +140,23 @@ namespace MediaBrowser.Server.Implementations.Channels
|
|||
|
||||
if (user != null)
|
||||
{
|
||||
channels = channels.Where(i => GetChannelProvider(i).IsEnabledFor(user.Id.ToString("N")) && i.IsVisible(user))
|
||||
.ToList();
|
||||
channels = channels.Where(i =>
|
||||
{
|
||||
if (!i.IsVisible(user))
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
try
|
||||
{
|
||||
return GetChannelProvider(i).IsEnabledFor(user.Id.ToString("N"));
|
||||
}
|
||||
catch
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
}).ToList();
|
||||
}
|
||||
|
||||
var all = channels;
|
||||
|
|
|
@ -83,8 +83,16 @@ namespace MediaBrowser.Server.Implementations.Intros
|
|||
|
||||
if (config.EnableIntrosFromMoviesInLibrary)
|
||||
{
|
||||
var itemsWithTrailers = user.RootFolder
|
||||
.GetRecursiveChildren(user, i =>
|
||||
var inputItems = _libraryManager.GetItems(new InternalItemsQuery
|
||||
{
|
||||
IncludeItemTypes = new[] { typeof(Movie).Name },
|
||||
|
||||
User = user
|
||||
|
||||
}).Items;
|
||||
|
||||
var itemsWithTrailers = inputItems
|
||||
.Where(i =>
|
||||
{
|
||||
var hasTrailers = i as IHasTrailers;
|
||||
|
||||
|
|
|
@ -78,10 +78,19 @@ namespace MediaBrowser.Server.Implementations.Library
|
|||
|
||||
public IEnumerable<Audio> GetInstantMixFromGenres(IEnumerable<string> genres, User user)
|
||||
{
|
||||
var inputItems = user.RootFolder
|
||||
.GetRecursiveChildren(user, i => i is Audio);
|
||||
var genreList = genres.ToList();
|
||||
|
||||
var genresDictionary = genres.ToDictionary(i => i, StringComparer.OrdinalIgnoreCase);
|
||||
var inputItems = _libraryManager.GetItems(new InternalItemsQuery
|
||||
{
|
||||
IncludeItemTypes = new[] { typeof(Audio).Name },
|
||||
|
||||
Genres = genreList.ToArray(),
|
||||
|
||||
User = user
|
||||
|
||||
}).Items;
|
||||
|
||||
var genresDictionary = genreList.ToDictionary(i => i, StringComparer.OrdinalIgnoreCase);
|
||||
|
||||
return inputItems
|
||||
.Cast<Audio>()
|
||||
|
@ -131,7 +140,7 @@ namespace MediaBrowser.Server.Implementations.Library
|
|||
{
|
||||
return GetInstantMixFromFolder(folder, user);
|
||||
}
|
||||
|
||||
|
||||
return new Audio[] { };
|
||||
}
|
||||
}
|
||||
|
|
|
@ -539,6 +539,9 @@
|
|||
<Content Include="dashboard-ui\thirdparty\social-share-kit-1.0.4\dist\js\social-share-kit.min.js">
|
||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||
</Content>
|
||||
<Content Include="dashboard-ui\thirdparty\viblast\viblast-video-js.swf">
|
||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||
</Content>
|
||||
<Content Include="dashboard-ui\thirdparty\viblast\viblast.crypto.js">
|
||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||
</Content>
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
using System.Reflection;
|
||||
|
||||
//[assembly: AssemblyVersion("3.0.*")]
|
||||
[assembly: AssemblyVersion("3.0.5768.3")]
|
||||
[assembly: AssemblyVersion("3.0.*")]
|
||||
//[assembly: AssemblyVersion("3.0.5768.3")]
|
||||
|
|
Loading…
Reference in New Issue
Block a user