Skip to content

Commit

Permalink
fix: don't count missing tvdb links in dashboard stats
Browse files Browse the repository at this point in the history
  • Loading branch information
revam committed Sep 8, 2024
1 parent 2dd1831 commit 49c90ad
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions Shoko.Server/API/v3/Controllers/DashboardController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -133,15 +133,12 @@ public Dashboard.CollectionStats GetStats()

private static bool MissingBothTvDBAndMovieDBLink(SVR_AnimeSeries ser)
{
if (ser.AniDB_Anime.Restricted > 0)
{
if (ser.IsTMDBAutoMatchingDisabled)
return false;
}

var tmdbMovieLinkMissing = RepoFactory.CrossRef_AniDB_TMDB_Movie.GetByAnidbAnimeID(ser.AniDB_ID).Count == 0;
var tmdbShowLinkMissing = RepoFactory.CrossRef_AniDB_TMDB_Show.GetByAnidbAnimeID(ser.AniDB_ID).Count == 0;
var tvdbLinkMissing = RepoFactory.CrossRef_AniDB_TvDB.GetByAnimeID(ser.AniDB_ID).Count == 0;
return tmdbMovieLinkMissing && tmdbShowLinkMissing && tvdbLinkMissing;
return tmdbMovieLinkMissing && tmdbShowLinkMissing;
}

/// <summary>
Expand Down

0 comments on commit 49c90ad

Please sign in to comment.