add multi-episode shuffle playout order (#987)

This commit is contained in:
Jason Dove
2022-10-09 10:49:07 -05:00
committed by GitHub
parent 6f892bea6b
commit f5aa2fcac8
17 changed files with 431 additions and 5 deletions
@@ -0,0 +1,23 @@
using ErsatzTV.Core.Domain;
using ErsatzTV.Core.Interfaces.Scheduling;
using Microsoft.Extensions.Logging;
namespace ErsatzTV.Infrastructure.Scheduling;
public class MultiEpisodeShuffleCollectionEnumeratorFactory
: IMultiEpisodeShuffleCollectionEnumeratorFactory
{
private readonly ILogger<MultiEpisodeShuffleCollectionEnumeratorFactory> _logger;
public MultiEpisodeShuffleCollectionEnumeratorFactory(
ILogger<MultiEpisodeShuffleCollectionEnumeratorFactory> logger)
{
_logger = logger;
}
public IMediaCollectionEnumerator Create(
string luaTemplatePath,
IList<MediaItem> mediaItems,
CollectionEnumeratorState state) =>
new MultiEpisodeShuffleCollectionEnumerator(mediaItems, state, luaTemplatePath, _logger);
}