The --directories flag was not working because it returned an array but the code expects a single item. I changed it to only take a single directory as an argument. Also, I added some checks to be more error-resistant and fixed the cover path when the directory argument is used.
I also had to increase the image file name length to account for longer paths.
The
--directories
flag was not working because it returned an array but the code expects a single item. I changed it to only take a single directory as an argument. Also, I added some checks to be more error-resistant and fixed the cover path when the directory argument is used. I also had to increase the image file name length to account for longer paths.