add option to shuffle schedule items (#652)
* add schedule setting * it works * fix tests * update readme * rebuild all playouts
This commit is contained in:
@@ -9,11 +9,12 @@ namespace ErsatzTV.ViewModels
|
||||
public string Name { get; set; }
|
||||
public bool KeepMultiPartEpisodesTogether { get; set; }
|
||||
public bool TreatCollectionsAsShows { get; set; }
|
||||
public bool ShuffleScheduleItems { get; set; }
|
||||
|
||||
public UpdateProgramSchedule ToUpdate() =>
|
||||
new(Id, Name, KeepMultiPartEpisodesTogether, TreatCollectionsAsShows);
|
||||
new(Id, Name, KeepMultiPartEpisodesTogether, TreatCollectionsAsShows, ShuffleScheduleItems);
|
||||
|
||||
public CreateProgramSchedule ToCreate() =>
|
||||
new(Name, KeepMultiPartEpisodesTogether, TreatCollectionsAsShows);
|
||||
new(Name, KeepMultiPartEpisodesTogether, TreatCollectionsAsShows, ShuffleScheduleItems);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user