How to store {_directory} in a variable using --exec-after #7027
-
Hello, I would like to implement a logic where I download images using gallery-dl and then convert the same images using an appropriate tool, but for that I need to somehow get the path to the images folder. I saw that there is I would like to know if there is a more viable way to store the directory of files where they were downloaded, since each link is downloaded in a different folder based on the site, the work, authors, etc. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
You can't really store values in variables when using
That's most likely an encoding mismatch. gallery-dl / |
Beta Was this translation helpful? Give feedback.
Well, I did what you said and directed the
{_directory}
to a new batch file using--exec-after "call tools\img\img2pdf.bat {_directory}"
where I will manipulate the images folder individually. And it worked! I only needed to replace the first 4 characters which were \\?\. Also when I usedecho
in the new batch file it sent the Japanese characters correctly (as shown in the following screenshot) - something that didn't happen when I used directly--exec-after "echo {_directory}"
. Anyway, thanks a lot for the answer!