Post Processing in a Python Script #4036
-
I'm successfully downloading files, and putting them into the directories I want, but I'm wondering if there is a way I can access the files downloaded each time so I can do some further processes on them (moving them into a gallery, and/or making thumbnails). I saw in the gallery-dl options for output it was possible to get output with the filename https://github.com/mikf/gallery-dl/blob/master/docs/configuration.rst#output-options my script loops for a list of links, and the download section is
and I have tried getting the out put with
(but I'm not really familiar with putting json options into a script). My output is just '0' each time it runs. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
config.set(('output',), 'mode', 'pipe')
config.set(('output',), 'shorten', False) Better yet would be copy-pasting the code of |
Beta Was this translation helpful? Give feedback.
Better yet would be copy-pasting the code of
DownloadJob
and modifying it to your needs.The full path of a file after its download can be found in
job.pathfmt.realpath
.