mikf / gallery-dl

Command-line program to download image galleries and collections from several image hosting sites
GNU General Public License v2.0
11.28k stars 919 forks source link

export metadata into txt file #315

Closed wankio closed 1 year ago

wankio commented 5 years ago

hentai2read, g.e-hentai/exhentai, hitomi.la, nhentai is there have any way to export metadata into one txt file for each queue job ?

g.e-hentai/exhentai . When downloading by https://github.com/ccloli/E-Hentai-Downloader , it have info.txt file contain metadata and DDL eg : https://pastebin.com/b5iDe0bM

Thank

mikf commented 5 years ago

There is --write-metadata (and in general the metadata post-processor), but that creates a metadata file for each downloaded (image) file and not just one per queue job.

wankio commented 5 years ago

so is there have anyway to limit it just one-time write, or it can't ? ty

mikf commented 5 years ago

It can't really do that, at least not at the moment.

A possible workaround might be to download only the first file with --write-metadata --range 1 to get a single metadata file, and then run gallery-dl a second time without those options to download the entire gallery in full.

wankio commented 5 years ago

oh, it's ok. thank :)

mikf commented 1 year ago

A --write-info-json command-line option got added in v1.19.0

thank

It's "thanks" or "thank you"