mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-06-02 13:58:29 +01:00
update translations
This commit is contained in:
@@ -283,5 +283,17 @@ namespace MediaBrowser.Controller.Entities
|
||||
|
||||
return hour >= schedule.StartHour && hour <= schedule.EndHour;
|
||||
}
|
||||
|
||||
public bool IsFolderGrouped(Guid id)
|
||||
{
|
||||
var config = Configuration;
|
||||
|
||||
if (config.ExcludeFoldersFromGrouping != null)
|
||||
{
|
||||
return !config.ExcludeFoldersFromGrouping.Select(i => new Guid(i)).Contains(id);
|
||||
}
|
||||
|
||||
return config.GroupedFolders.Select(i => new Guid(i)).Contains(id);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1754,12 +1754,10 @@ namespace MediaBrowser.Controller.Entities
|
||||
|
||||
private IEnumerable<Folder> GetMediaFolders(User user)
|
||||
{
|
||||
var excludeFolderIds = user.Configuration.ExcludeFoldersFromGrouping.Select(i => new Guid(i)).ToList();
|
||||
|
||||
return user.RootFolder
|
||||
.GetChildren(user, true, true)
|
||||
.OfType<Folder>()
|
||||
.Where(i => !excludeFolderIds.Contains(i.Id) && !UserView.IsExcludedFromGrouping(i));
|
||||
.Where(i => user.IsFolderGrouped(i.Id) && !UserView.IsExcludedFromGrouping(i));
|
||||
}
|
||||
|
||||
private IEnumerable<Folder> GetMediaFolders(User user, IEnumerable<string> viewTypes)
|
||||
|
||||
Reference in New Issue
Block a user