Skip to content
Permalink
Browse files

[F] Fix linking 1 file to x episodes

  • Loading branch information...
Baine committed Jun 5, 2019
1 parent 58ec14e commit 508e56e51542558b58f38f4c72f1cf8ce375862c
@@ -750,8 +750,8 @@ public string AssociateSingleFile(int videoLocalID, int animeEpisodeID)
}

[HttpPost("File/Association/{videoLocalID}/{animeSeriesID}/{startingEpisodeNumber}/{endEpisodeNumber}")]
public string AssociateSingleFileWithMultipleEpisodes(int videoLocalID, int animeSeriesID, int startEpNum,
int endEpNum)
public string AssociateSingleFileWithMultipleEpisodes(int videoLocalID, int animeSeriesID, int startingEpisodeNumber,
int endEpisodeNumber)
{
try
{
@@ -766,7 +766,7 @@ public string AssociateSingleFile(int videoLocalID, int animeEpisodeID)

RemoveXRefsForFile(videoLocalID);

for (int i = startEpNum; i <= endEpNum; i++)
for (int i = startingEpisodeNumber; i <= endEpisodeNumber; i++)
{
AniDB_Episode aniep = RepoFactory.AniDB_Episode.GetByAnimeIDAndEpisodeNumber(ser.AniDB_ID, i)[0];
if (aniep == null)

0 comments on commit 508e56e

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