mirror of https://github.com/ErsatzTV/ErsatzTV.git
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
783 B
23 lines
783 B
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 luaScriptPath, |
|
IList<MediaItem> mediaItems, |
|
CollectionEnumeratorState state) => |
|
new MultiEpisodeShuffleCollectionEnumerator(mediaItems, state, luaScriptPath, _logger); |
|
}
|
|
|