multi-episode grouping bugfix

This commit is contained in:
Jason Dove
2021-05-18 09:56:04 -05:00
parent 47e9a319ce
commit 6e6d53d847
2 changed files with 4 additions and 3 deletions
@@ -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)
{