fixed strange indentation when anime not found

This commit is contained in:
milarin 2023-01-23 21:48:49 +01:00
parent a025fcfba2
commit b7bbd0ed40

View File

@ -35,14 +35,15 @@ func HandleFile(fh *FileHandle) {
continue
}
fmt.Fprintln(w, color.GreenString(parser.Identity))
anime, err := logic.SearchAnimeByTitle(parsedFile.OriginalAnimeTitle)
if err != nil {
fmt.Fprint(w, color.RedString("\tanime not found: '%s'\n", parsedFile.OriginalAnimeTitle))
fmt.Fprintln(w, color.RedString(parser.Identity))
fmt.Fprintln(w, color.RedString("\tanime not found: '%s'", parsedFile.OriginalAnimeTitle))
continue
}
fmt.Fprintln(w, color.GreenString(parser.Identity))
parsedFile.Anime = anime
HandleParsedFile(w, parsedFile)
break