Closed ghost closed 4 years ago
It's not possible to split duration and filename info like that. You'll have to write your own script that parses the JSON from --write-metadata
and writes the data in a format you want.
What do you want to do with a list of delays/filenames?
It's not possible to split duration and filename info like that. You'll have to write your own script that parses the JSON from --write-metadata and writes the data in a format you want.
Ah I see.
What do you want to do with a list of delays/filenames?
This was just a condensed version as I tried to get the frames to show. I was doing a "mode": "custom"
with a specific format but based off what you said I think I'll just use the json mode. It shouldn't really matter since I'm using grep (jq maybe?) to parse the files anyway.
Thanks for taking the time to explain it.
If I do:
$ gallery-dl --write-metadata --ignore-config https://danbooru.donmai.us/posts/3717969
The .json will have the delay listed with the file:
But if I try and use the custom mode, with the following config.json:
My file looks like:
So my question is how do I get the custom format to look like the
--write-metadata
format.