multi-episode grouping bugfix
This commit is contained in:
@@ -37,9 +37,10 @@ namespace ErsatzTV.Application.ProgramSchedules.Commands
|
||||
ProgramSchedule programSchedule,
|
||||
UpdateProgramSchedule update)
|
||||
{
|
||||
// we only need to rebuild playouts if the playback order has been modified
|
||||
// we need to rebuild playouts if the playback order or keep multi-episodes has been modified
|
||||
bool needToRebuildPlayout =
|
||||
programSchedule.MediaCollectionPlaybackOrder != update.MediaCollectionPlaybackOrder;
|
||||
programSchedule.MediaCollectionPlaybackOrder != update.MediaCollectionPlaybackOrder ||
|
||||
programSchedule.KeepMultiPartEpisodesTogether != update.KeepMultiPartEpisodesTogether;
|
||||
|
||||
programSchedule.Name = update.Name;
|
||||
programSchedule.MediaCollectionPlaybackOrder = update.MediaCollectionPlaybackOrder;
|
||||
|
||||
@@ -19,7 +19,7 @@ namespace ErsatzTV.Core.Scheduling
|
||||
{
|
||||
if (item is Episode e)
|
||||
{
|
||||
const string PATTERN = @"^.*\((\d+)\)$";
|
||||
const string PATTERN = @"^.*\((\d+)\)( - .*)?$";
|
||||
Match match = Regex.Match(e.EpisodeMetadata.Head().Title, PATTERN);
|
||||
if (match.Success)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user