trakt season bug fixes (#386)
This commit is contained in:
@@ -12,6 +12,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
|
|||||||
- Trakt lists can only be scheduled by using Smart Collections
|
- Trakt lists can only be scheduled by using Smart Collections
|
||||||
- Add seasons to search index
|
- Add seasons to search index
|
||||||
- This is needed because Trakt lists can contain seasons
|
- This is needed because Trakt lists can contain seasons
|
||||||
|
- This requires rebuilding the search index and search results may be empty or incomplete until the rebuild is complete
|
||||||
|
|
||||||
### Fixed
|
### Fixed
|
||||||
- Fix local television scanner to properly update episode metadata when NFO files have been added/changed
|
- Fix local television scanner to properly update episode metadata when NFO files have been added/changed
|
||||||
|
|||||||
@@ -145,7 +145,7 @@ namespace ErsatzTV.Application.MediaCollections.Commands
|
|||||||
Option<int> maybeSeasonId = await IdentifySeason(dbContext, item);
|
Option<int> maybeSeasonId = await IdentifySeason(dbContext, item);
|
||||||
foreach (int seasonId in maybeSeasonId)
|
foreach (int seasonId in maybeSeasonId)
|
||||||
{
|
{
|
||||||
// TODO: ids.Add(seasonId);
|
ids.Add(seasonId);
|
||||||
item.MediaItemId = seasonId;
|
item.MediaItemId = seasonId;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -114,6 +114,12 @@ namespace ErsatzTV.Infrastructure.Data.Repositories
|
|||||||
result.AddRange(await GetShowItemsFromShowId(dbContext, showId));
|
result.AddRange(await GetShowItemsFromShowId(dbContext, showId));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
foreach (int seasonId in searchResults.Items.Filter(i => i.Type == SearchIndex.SeasonType)
|
||||||
|
.Map(i => i.Id))
|
||||||
|
{
|
||||||
|
result.AddRange(await GetSeasonItemsFromSeasonId(dbContext, seasonId));
|
||||||
|
}
|
||||||
|
|
||||||
foreach (int artistId in searchResults.Items.Filter(i => i.Type == SearchIndex.ArtistType)
|
foreach (int artistId in searchResults.Items.Filter(i => i.Type == SearchIndex.ArtistType)
|
||||||
.Map(i => i.Id))
|
.Map(i => i.Id))
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -157,7 +157,7 @@
|
|||||||
@foreach (TelevisionSeasonCardViewModel card in _seasons.Cards.OrderBy(s => s.SortTitle))
|
@foreach (TelevisionSeasonCardViewModel card in _seasons.Cards.OrderBy(s => s.SortTitle))
|
||||||
{
|
{
|
||||||
<MediaCard Data="@card"
|
<MediaCard Data="@card"
|
||||||
Link="@($"/media/tv/shows/{card.TelevisionSeasonId}")"
|
Link="@($"/media/tv/seasons/{card.TelevisionSeasonId}")"
|
||||||
AddToCollectionClicked="@AddToCollection"
|
AddToCollectionClicked="@AddToCollection"
|
||||||
SelectClicked="@(e => SelectClicked(card, e))"
|
SelectClicked="@(e => SelectClicked(card, e))"
|
||||||
IsSelected="@IsSelected(card)"
|
IsSelected="@IsSelected(card)"
|
||||||
|
|||||||
Reference in New Issue
Block a user