fixed sending telegram message for ignoring torrent files due to lower priority

This commit is contained in:
milarin 2023-01-16 14:57:56 +01:00
parent 85deff8bd0
commit 6b9e7a55f5

View File

@ -45,7 +45,6 @@ func HandleFile(fh *FileHandle) {
parsedFile.Anime = anime
HandleParsedFile(w, parsedFile)
SendTelegramAnimeEpMessage(TelegramOrganizeMessagePattern, parsedFile.AnimeEpisode())
break
}
}
@ -87,6 +86,8 @@ func HandleParsedFile(w io.Writer, parsedFile *model.ParsedFile) {
}
func OrganizeAnimeEpisode(w io.Writer, parsedFile *model.ParsedFile) error {
SendTelegramAnimeEpMessage(TelegramOrganizeMessagePattern, parsedFile.AnimeEpisode())
start := time.Now()
oldFile := parsedFile.File