include other videos (ungrouped) in shuffle in order (#953)

* include other videos (ungrouped) in shuffle in order

* fix id conflict
This commit is contained in:
Jason Dove
2022-09-05 09:20:11 -05:00
committed by GitHub
parent df281758b7
commit 3cc1286271
2 changed files with 10 additions and 1 deletions
+1
View File
@@ -14,6 +14,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
- Properly scale image-based subtitles
- Fix bug where a schedule containing a single item (fixed start and flood) would never finish building a playout
- Logic was also added to detect infinite playout build loops in the future and stop them
- Fix bug where `Other Videos` wouldn't be included in scheduling mode `Shuffle In Order`
### Added
- Add `Preferred Audio Title` feature
@@ -419,12 +419,20 @@ public class MediaCollectionRepository : IMediaCollectionRepository
result.Add(
new CollectionWithItems(
id,
id--,
items.OfType<Movie>().Cast<MediaItem>().ToList(),
true,
PlaybackOrder.Chronological,
false));
result.Add(
new CollectionWithItems(
id,
items.OfType<OtherVideo>().Cast<MediaItem>().ToList(),
true,
PlaybackOrder.Chronological,
false));
return result;
}