fix: check for converter ready to do its job

This commit is contained in:
Antoine Aflalo
2024-08-26 23:42:15 -04:00
parent d7e3bc6399
commit 590dd646e7
3 changed files with 21 additions and 1 deletions

View File

@@ -50,6 +50,11 @@ func ConvertCbzCommand(cmd *cobra.Command, args []string) error {
if err != nil {
return fmt.Errorf("failed to get chapterConverter: %v", err)
}
err = chapterConverter.PrepareConverter()
if err != nil {
return fmt.Errorf("failed to prepare converter: %v", err)
}
// Channel to manage the files to process
fileChan := make(chan string)