From c66528db6558293a16fa9798ef71faf995b8e717 Mon Sep 17 00:00:00 2001 From: Mikal Stordal Date: Sun, 17 Nov 2024 17:25:36 +0100 Subject: [PATCH] fix: also check if episode xrefs are 0 --- Shoko.Server/API/v3/Controllers/TmdbController.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Shoko.Server/API/v3/Controllers/TmdbController.cs b/Shoko.Server/API/v3/Controllers/TmdbController.cs index 16a5d44af..54bbf72a4 100644 --- a/Shoko.Server/API/v3/Controllers/TmdbController.cs +++ b/Shoko.Server/API/v3/Controllers/TmdbController.cs @@ -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)