diff --git a/Shoko.Server/API/v3/Controllers/TmdbController.cs b/Shoko.Server/API/v3/Controllers/TmdbController.cs index 54bbf72a4..60fc6e1ca 100644 --- a/Shoko.Server/API/v3/Controllers/TmdbController.cs +++ b/Shoko.Server/API/v3/Controllers/TmdbController.cs @@ -2546,7 +2546,7 @@ IFormFile file var currentHeader = ""; var movieIdXrefs = new List<(int anidbAnime, int anidbEpisode, int tmdbMovie, bool isAutomatic)>(); var episodeIdXrefs = new List<(int anidbAnime, int anidbEpisode, int tmdbShow, int tmdbEpisode, MatchRating rating)>(); - while (!string.IsNullOrEmpty(line = stream.ReadLine())) + while ((line = stream.ReadLine()) is not null) { lineNumber++; if (line.Length == 0 || line[0] == '#')