Stream custom live channels using your own media
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

23 lines
678 B

using System.Diagnostics.CodeAnalysis;
using ErsatzTV.Core.Interfaces.Scheduling;
namespace ErsatzTV.Core.Scheduling.ScriptedScheduling.Modules;
[SuppressMessage("Naming", "CA1707:Identifiers should not contain underscores")]
public class ContentModule
{
private Dictionary<string, IMediaCollectionEnumerator> _contentEnumerators = [];
public bool add_collection(string key, string name, string order)
{
if (_contentEnumerators.ContainsKey(key))
{
return false;
}
Console.WriteLine($"Adding collection '{name}' with key '{key}' and order '{order}'");
_contentEnumerators.Clear();
return true;
}
}