Various minor changes to announcer to support Web version and include Anilist

This commit is contained in:
2026-09-21 14:19:39 -04:00
parent 8831d0ce2f
commit a1ec0ea7f5
4 changed files with 39 additions and 23 deletions
+4 -4
View File
@@ -43,7 +43,7 @@ public class IndexModel : PageModel
TMDBCacheItem? cacheItem = null;
try
{
cacheItem = await _tmdbCache.GetCacheItem($"ShowCache-{airingItem.Title}");
cacheItem = await _tmdbCache.GetCacheItem<TMDBCacheItem>($"ShowCache-{airingItem.Title}");
}
catch (Exception ex)
{
@@ -68,7 +68,7 @@ public class IndexModel : PageModel
}).ToList();
AiringShows = displayable
.Where(x => x.EffectiveLastAirDate.HasValue && x.EffectiveLastAirDate.Value > DateTime.Now)
.Where(x => x.EffectiveLastAirDate.HasValue && x.EffectiveLastAirDate.Value.Date >= DateTime.Now.Date)
.OrderBy(x => x.EffectiveLastAirDate)
.ThenBy(x => x.Title)
.ToList();
@@ -107,8 +107,8 @@ public class IndexModel : PageModel
return CachedDetails.LatestSeasonPosterPath;
if (!string.IsNullOrWhiteSpace(CachedDetails?.PosterPath))
return CachedDetails.PosterPath;
if (!string.IsNullOrWhiteSpace(CachedDetails?.AnilistPosterPath))
return CachedDetails.AnilistPosterPath;
//if (!string.IsNullOrWhiteSpace(CachedDetails?.AnilistPosterPath))
// return CachedDetails.AnilistPosterPath;
return null;
}
}