Various minor changes to announcer to support Web version and include Anilist
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user