From 49c90ad937e1bcffcc6ea06165b6b6708a070bcd Mon Sep 17 00:00:00 2001 From: Mikal Stordal Date: Mon, 9 Sep 2024 01:47:54 +0200 Subject: [PATCH] fix: don't count missing tvdb links in dashboard stats --- Shoko.Server/API/v3/Controllers/DashboardController.cs | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/Shoko.Server/API/v3/Controllers/DashboardController.cs b/Shoko.Server/API/v3/Controllers/DashboardController.cs index b9dd0371e..34bf66d31 100644 --- a/Shoko.Server/API/v3/Controllers/DashboardController.cs +++ b/Shoko.Server/API/v3/Controllers/DashboardController.cs @@ -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; } ///