fix dlna playlist

pull/702/head
Luke Pulverenti 9 years ago
parent 79a7e907d4
commit 8523d0aa2b

@ -140,8 +140,23 @@ namespace MediaBrowser.Server.Implementations.Channels
if (user != null) if (user != null)
{ {
channels = channels.Where(i => GetChannelProvider(i).IsEnabledFor(user.Id.ToString("N")) && i.IsVisible(user)) channels = channels.Where(i =>
.ToList(); {
if (!i.IsVisible(user))
{
return false;
}
try
{
return GetChannelProvider(i).IsEnabledFor(user.Id.ToString("N"));
}
catch
{
return false;
}
}).ToList();
} }
var all = channels; var all = channels;

@ -83,8 +83,16 @@ namespace MediaBrowser.Server.Implementations.Intros
if (config.EnableIntrosFromMoviesInLibrary) if (config.EnableIntrosFromMoviesInLibrary)
{ {
var itemsWithTrailers = user.RootFolder var inputItems = _libraryManager.GetItems(new InternalItemsQuery
.GetRecursiveChildren(user, i => {
IncludeItemTypes = new[] { typeof(Movie).Name },
User = user
}).Items;
var itemsWithTrailers = inputItems
.Where(i =>
{ {
var hasTrailers = i as IHasTrailers; var hasTrailers = i as IHasTrailers;

@ -78,10 +78,19 @@ namespace MediaBrowser.Server.Implementations.Library
public IEnumerable<Audio> GetInstantMixFromGenres(IEnumerable<string> genres, User user) public IEnumerable<Audio> GetInstantMixFromGenres(IEnumerable<string> genres, User user)
{ {
var inputItems = user.RootFolder var genreList = genres.ToList();
.GetRecursiveChildren(user, i => i is Audio);
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 return inputItems
.Cast<Audio>() .Cast<Audio>()

@ -539,6 +539,9 @@
<Content Include="dashboard-ui\thirdparty\social-share-kit-1.0.4\dist\js\social-share-kit.min.js"> <Content Include="dashboard-ui\thirdparty\social-share-kit-1.0.4\dist\js\social-share-kit.min.js">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content> </Content>
<Content Include="dashboard-ui\thirdparty\viblast\viblast-video-js.swf">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
<Content Include="dashboard-ui\thirdparty\viblast\viblast.crypto.js"> <Content Include="dashboard-ui\thirdparty\viblast\viblast.crypto.js">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content> </Content>

@ -1,4 +1,4 @@
using System.Reflection; using System.Reflection;
//[assembly: AssemblyVersion("3.0.*")] [assembly: AssemblyVersion("3.0.*")]
[assembly: AssemblyVersion("3.0.5768.3")] //[assembly: AssemblyVersion("3.0.5768.3")]

Loading…
Cancel
Save