diff --git a/handle_file.go b/handle_file.go index b144dfe..e1ac820 100644 --- a/handle_file.go +++ b/handle_file.go @@ -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