Browse Source

include other video title in channel guide (#483)

pull/485/head
Jason Dove 4 years ago committed by GitHub
parent
commit
d487bbca08
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 5
      .github/workflows/release.yml
  2. 5
      CHANGELOG.md
  3. 2
      ErsatzTV.Core/Iptv/ChannelGuide.cs
  4. 5
      ErsatzTV.Infrastructure/Data/Repositories/ChannelRepository.cs

5
.github/workflows/release.yml

@ -18,8 +18,11 @@ jobs: @@ -18,8 +18,11 @@ jobs:
kind: windows
target: win-x64
- os: macos-latest
kind: maxOS
kind: macOS
target: osx-x64
- os: macos-latest
kind: macOS
target: osx-arm64
runs-on: ${{ matrix.os }}
steps:
- name: Get the sources

5
CHANGELOG.md

@ -4,6 +4,11 @@ All notable changes to this project will be documented in this file. @@ -4,6 +4,11 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
## [Unreleased]
### Fixed
- Include other video title in channel guide (xmltv)
### Added
- Build osx-arm64 packages on release
## [0.2.4-alpha] - 2021-11-13
### Changed

2
ErsatzTV.Core/Iptv/ChannelGuide.cs

@ -342,6 +342,8 @@ namespace ErsatzTV.Core.Iptv @@ -342,6 +342,8 @@ namespace ErsatzTV.Core.Iptv
.IfNone("[unknown show]"),
MusicVideo mv => mv.Artist.ArtistMetadata.HeadOrNone().Map(am => am.Title ?? string.Empty)
.IfNone("[unknown artist]"),
OtherVideo ov => ov.OtherVideoMetadata.HeadOrNone().Map(vm => vm.Title ?? string.Empty)
.IfNone("[unknown video]"),
_ => "[unknown]"
};
}

5
ErsatzTV.Infrastructure/Data/Repositories/ChannelRepository.cs

@ -80,6 +80,11 @@ namespace ErsatzTV.Infrastructure.Data.Repositories @@ -80,6 +80,11 @@ namespace ErsatzTV.Infrastructure.Data.Repositories
.ThenInclude(i => i.MediaItem)
.ThenInclude(i => (i as MusicVideo).Artist)
.ThenInclude(a => a.ArtistMetadata)
.Include(c => c.Playouts)
.ThenInclude(p => p.Items)
.ThenInclude(i => i.MediaItem)
.ThenInclude(i => (i as OtherVideo).OtherVideoMetadata)
.ThenInclude(vm => vm.Artwork)
.ToListAsync();
}

Loading…
Cancel
Save