Skip to content

Commit

Permalink
fix: also check if episode xrefs are 0
Browse files Browse the repository at this point in the history
  • Loading branch information
revam committed Nov 17, 2024
1 parent 5559ed4 commit c66528d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Shoko.Server/API/v3/Controllers/TmdbController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2616,7 +2616,7 @@ IFormFile file
}
}

if (ModelState.IsValid && movieIdXrefs.Count == 0)
if (ModelState.IsValid && movieIdXrefs.Count == 0 && episodeIdXrefs.Count == 0)
ModelState.AddModelError("Body", "File contained no lines to import.");

if (!ModelState.IsValid)
Expand Down

0 comments on commit c66528d

Please sign in to comment.