add movie and show genres (#61)

* load movie genres from sidecar metadata

* search movie and tv show genres

* rebuild all playouts (needed after time zone fix)

* code cleanup

* fix duplicate tv show search results
This commit is contained in:
Jason Dove
2021-03-11 02:42:04 +00:00
committed by GitHub
parent c016cac8d4
commit 76d6725dd5
25 changed files with 5037 additions and 22 deletions
+10 -1
View File
@@ -23,7 +23,7 @@
}
</MudContainer>
<MudContainer MaxWidth="MaxWidth.Large" Style="margin-top: 200px">
<div style="display: flex; flex-direction: row;">
<div style="display: flex; flex-direction: row;" class="mb-6">
@if (!string.IsNullOrWhiteSpace(_show.Poster))
{
<img class="mud-elevation-2 mr-6"
@@ -58,6 +58,15 @@
</div>
</div>
</div>
@if (_show.Genres.Any())
{
<div>
@foreach (string genre in _show.Genres.OrderBy(g => g))
{
<MudFab Color="Color.Info" Size="Size.Small" Label="@genre" Class="mr-2" Link="@($"/search?query=genre%3a{genre}")"/>
}
</div>
}
</MudContainer>
<MudContainer MaxWidth="MaxWidth.Large" Class="media-card-grid mt-8">
@foreach (TelevisionSeasonCardViewModel card in _data.Cards)