Skip to content
Permalink
Browse files

Exception for CrossRef Matches on AniDB<->TvDB when AniDB has marked …

…the anime as movie and TvDB as series.
  • Loading branch information...
maxpiva committed Oct 16, 2019
1 parent e2a7209 commit 1188a17ed751828d668bfdde6c099aedccbaabc2
Showing with 7 additions and 1 deletion.
  1. +7 −1 Shoko.Server/Providers/TvDB/TvDBLinkingHelper.cs
@@ -172,7 +172,13 @@ public static List<CrossRef_AniDB_TvDB_Episode> GetMatchPreviewWithOverrides(int

if (aniepsSpecial.Count > 0 && tvepsSpecial.Count > 0)
TryToMatchSpeicalsToTvDB(aniepsSpecial, tvepsSpecial, ref matches);

if (matches.Count == 0)
{
//Special Exception, sometimes tvdb matches series as anidb movies or viceversa
if ((anime?.AnimeType == (int) AnimeType.OVA || anime?.AnimeType == (int) AnimeType.Movie ||
anime?.AnimeType == (int) AnimeType.TVSpecial) && (aniepsNormal.Count > 0))
TryToMatchNormalEpisodesToTvDB(aniepsNormal, tvepsNormal, anime?.EndDate == null, ref matches);
}
return matches;
}

0 comments on commit 1188a17

Please sign in to comment.
You can’t perform that action at this time.