add playlist item count and shuffle playlist items (#2407)

* marathon cleanup

* add playlist item count, and shuffle playlist items
This commit is contained in:
Jason Dove
2025-09-12 14:19:05 +00:00
committed by GitHub
parent 4e065fe922
commit 17c7774603
19 changed files with 12971 additions and 24 deletions
@@ -69,11 +69,17 @@ public class ProgramScheduleItemEditViewModel : INotifyPropertyChanged
MultipleMode = MultipleMode.Count;
}
if (_collectionType == ProgramScheduleItemCollectionType.Playlist)
{
PlaybackOrder = PlaybackOrder.None;
}
OnPropertyChanged(nameof(Collection));
OnPropertyChanged(nameof(MultiCollection));
OnPropertyChanged(nameof(MediaItem));
OnPropertyChanged(nameof(SmartCollection));
OnPropertyChanged(nameof(MultiCollection));
OnPropertyChanged(nameof(PlaybackOrder));
}
if (_collectionType == ProgramScheduleItemCollectionType.MultiCollection)
@@ -129,6 +135,13 @@ public class ProgramScheduleItemEditViewModel : INotifyPropertyChanged
MultipleMode = MultipleMode.Count;
}
if (_playbackOrder is not PlaybackOrder.Marathon)
{
MarathonGroupBy = MarathonGroupBy.None;
MarathonShuffleItems = false;
MarathonBatchSize = null;
}
OnPropertyChanged();
OnPropertyChanged(nameof(CanFillWithGroups));
OnPropertyChanged(nameof(MultipleMode));