Browse Source

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

* include other videos (ungrouped) in shuffle in order

* fix id conflict
pull/954/head
Jason Dove 4 years ago committed by GitHub
parent
commit
3cc1286271
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      CHANGELOG.md
  2. 10
      ErsatzTV.Infrastructure/Data/Repositories/MediaCollectionRepository.cs

1
CHANGELOG.md

@ -14,6 +14,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
- Properly scale image-based subtitles - Properly scale image-based subtitles
- Fix bug where a schedule containing a single item (fixed start and flood) would never finish building a playout - 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 - 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 ### Added
- Add `Preferred Audio Title` feature - Add `Preferred Audio Title` feature

10
ErsatzTV.Infrastructure/Data/Repositories/MediaCollectionRepository.cs

@ -419,12 +419,20 @@ public class MediaCollectionRepository : IMediaCollectionRepository
result.Add( result.Add(
new CollectionWithItems( new CollectionWithItems(
id, id--,
items.OfType<Movie>().Cast<MediaItem>().ToList(), items.OfType<Movie>().Cast<MediaItem>().ToList(),
true, true,
PlaybackOrder.Chronological, PlaybackOrder.Chronological,
false)); false));
result.Add(
new CollectionWithItems(
id,
items.OfType<OtherVideo>().Cast<MediaItem>().ToList(),
true,
PlaybackOrder.Chronological,
false));
return result; return result;
} }

Loading…
Cancel
Save