Permalink
Browse files

[F] Delete Episode and Override Links when Deleting TvDB Links

  • Loading branch information...
da3dsoul committed Aug 4, 2018
1 parent f5cc9a9 commit 1e65dc94d8cc845488bb2c384e5b8ecdccaade6a
Showing with 4 additions and 0 deletions.
  1. +4 −0 Shoko.Server/Providers/TvDB/TvDBApiHelper.cs
@@ -825,6 +825,10 @@ public static void RemoveLinkAniDBTvDB(int animeID, int tvDBID)
if (xref == null) return;

RepoFactory.CrossRef_AniDB_TvDB.Delete(xref);
RepoFactory.CrossRef_AniDB_TvDB_Episode.Delete(
RepoFactory.CrossRef_AniDB_TvDB_Episode.GetByAnimeID(animeID));
RepoFactory.CrossRef_AniDB_TvDB_Episode_Override.Delete(
RepoFactory.CrossRef_AniDB_TvDB_Episode_Override.GetByAnimeID(animeID));

SVR_AniDB_Anime.UpdateStatsByAnimeID(animeID);
}

0 comments on commit 1e65dc9

Please sign in to comment.