Is it possible to pass along an image's id number through --exec command? ie echo {id} #9305
Unanswered
sbmotoracer
asked this question in
Q&A
Replies: 1 comment
-
This only works in a config file but not on command-line with
Most booru sites have a notes option to fetch them as metadata. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Good Afternoon,
Let me start off with apologizing if my question is somewhat incoherent. I can't sleep and have been up for close to 48 hours... Yay /s ....
I'm attempting to download a booru site's translation (notes) through their api since Gallery-dl -K's option doesn't show the translation notes listed.
I figured I'd use the --exec command to curl the api site and have gallery-dl fill in the id number ex https://boorusite/notes.json?search[post_id]={id} but I've noticed gallery-dl doesn't pass along the metadata to curl.
As a test I ran --exec 'echo {id}' and got
postprocessor.exec: Running 'echo {id}'
{id}
I've also tried {filesize} in case the {id} doesn't exist for some reason :
postprocessor.exec: Running 'echo {filesize}'
{filesize}
and got the same result.
Checking the docs page, it states:
Each element of this list is evaluated as a Format String using the files' metadata as well as {_path}, {_temppath}, {_directory}, and {_filename}.
So I tried to make the exec command into a list format using the example on the doc page: ["echo", "{user[account]}", "{id}"]
and got:
postprocessor.exec: Running '[echo,'
/bin/sh: 1: [echo,: not found
postprocessor.exec: '[echo,' returned with non-zero exit status (127)
postprocessor.exec: Running '["echo", "{user[account]}", "{id}"]'
/bin/sh: 1: [echo,: not found
postprocessor.exec: '["echo", "{user[account]}", "{id}"]' returned with non-zero exit status (127)
Am I doing something incredibly stupid or is it not possible to pass along metadata other then the path/filename/directory?
Thank you for your help!
Beta Was this translation helpful? Give feedback.
All reactions