Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exhentai and metadata #984

Closed
ghost opened this issue Sep 8, 2020 · 4 comments
Closed

Exhentai and metadata #984

ghost opened this issue Sep 8, 2020 · 4 comments

Comments

@ghost
Copy link

ghost commented Sep 8, 2020

Add one JSON file with the gallery's metadata to the zip file or folder after it's done with the URL.
It could be called "extractor.exhentai.metadata".
Example1: https://raw.githubusercontent.com/dnsev-h/x/master/builds/x-gallery-metadata.user.js
Example2: https://ehwiki.org/wiki/API#Gallery_Metadata

Example1 looks like this

@mikf
Copy link
Owner

mikf commented Sep 8, 2020

This is something the metadata postprocessor should be able to do, but currently it can only work for individual files and you'd end up with one metadata file for each image.

This is something that will be possible eventually (i.e. Soon™), but for right now you'll have to run gallery-dl a second time as

$ gallery-dl --no-download --write-metadata --range 1 -o skip=false URL

to only write the metadata of the first file.

Adding it to the ZIP file will most likely never be implemented.

@ghost
Copy link
Author

ghost commented Sep 8, 2020

If you decide to implement it, please name the file "info.json" or "info.txt" because it's what other popular download methods are doing.

@ghost
Copy link
Author

ghost commented Sep 14, 2020

I've been using gallery-dl to download thousands of galleries now, and I noticed a huge conflicting problem with these two commands ["{gallery_token}-{title}"] and gallery-dl --no-download --write-metadata --range 1 -o skip=false URL.
Titles on exhentai are always edited on a periodic basis. Some examples are newly published galleries, "hosho" to "hoshou" or "Dorachefu" to "Drachef" and so on.
Because we have to run gallery-dl a second time with that command, it'll cause gallery-dl to create a new folder with a different name when the title is different, which means it'll put the metadata in a separate folder. This problem can be avoided by taking out {title}. It might not be a problem to most people but for some it might be.

@mikf
Copy link
Owner

mikf commented Dec 3, 2022

--write-info-json (1cc73e1, v1.19.0)

@mikf mikf closed this as completed Dec 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant