Add nightly job
This commit is contained in:
@@ -175,21 +175,8 @@ public abstract class SrgChannelBase : IChannel, IHasCacheKey
|
||||
}
|
||||
}
|
||||
|
||||
private bool IsUnitEnabled()
|
||||
{
|
||||
var config = Plugin.Instance?.Configuration;
|
||||
return config == null || config.ResolveEnabledUnits().Contains(Unit);
|
||||
}
|
||||
|
||||
private async Task<List<ChannelItemInfo>> GetFolderItemsAsync(string? folderId, CancellationToken cancellationToken)
|
||||
{
|
||||
// If this unit is not enabled in configuration, show nothing (empty tile).
|
||||
if (!IsUnitEnabled())
|
||||
{
|
||||
_logger.LogDebug("Business unit {Unit} is not enabled - returning no items", Unit);
|
||||
return new List<ChannelItemInfo>();
|
||||
}
|
||||
|
||||
// Root level - show folder list
|
||||
if (string.IsNullOrEmpty(folderId))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user