mikf / gallery-dl

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

How do I use extractor.exhentai.metadata? #2120

Closed a84r7a3rga76fg closed 2 years ago

a84r7a3rga76fg commented 2 years ago

Adding "metadata": "true" didn't work in the config

Hrxn commented 2 years ago

You are sure you set that option correctly in your config file?

Can you post a full output log of gallery-dl --verbose <YourURLHere>?

a84r7a3rga76fg commented 2 years ago

Does it work for you?

PS C:\Users\Administrator> gallery-dl --verbose https://exhentai.org/g/2021660/eee2504b2f/
[gallery-dl][debug] Version 1.19.3
[gallery-dl][debug] Python 3.7.9 - Windows-10-10.0.19041
[gallery-dl][debug] requests 2.25.1 - urllib3 1.25.11
[gallery-dl][debug] Starting DownloadJob for 'https://exhentai.org/g/2021660/eee2504b2f/'
[exhentai][debug] Using ExhentaiGalleryExtractor for 'https://exhentai.org/g/2021660/eee2504b2f/'
[urllib3.connectionpool][debug] Starting new HTTPS connection (1): exhentai.org:443
PS C:\Users\Administrator>
mikf commented 2 years ago

If enabled, you'd see an extra HTTP request to /api.php before the first file gets downloaded:

[urllib3.connectionpool][debug] https://exhentai.org:443 "GET /s/26523e1d67/2021660-1/2021660-1 HTTP/1.1" 200 1355
[exhentai][debug] Sleeping for 4.996 seconds
### vvv
[urllib3.connectionpool][debug] https://exhentai.org:443 "POST /api.php HTTP/1.1" 200 443
### ^^^
[urllib3.connectionpool][debug] https://exhentai.org:443 "GET /fullimg.php?gid=2021660&page=1&key=asbo9yq9rj9 HTTP/1.1" 302 0

What do you mean by "didn't work"? All enabling this option does is provide more metadata entries. If you want to write that to a file, use something like --write-infojson.

a84r7a3rga76fg commented 2 years ago

That's what I wanted to do, thanks.