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

[Hitomi] 403 errors #2260

Closed
styler00dollar opened this issue Feb 2, 2022 · 5 comments
Closed

[Hitomi] 403 errors #2260

styler00dollar opened this issue Feb 2, 2022 · 5 comments

Comments

@styler00dollar
Copy link
Contributor

styler00dollar commented Feb 2, 2022

gallery-dl "https://[...]" --verbose
[gallery-dl][debug] Version 1.20.3
[gallery-dl][debug] Python 3.10.1 - Linux-5.15.16-1-MANJARO-x86_64-with-glibc2.33
[gallery-dl][debug] requests 2.26.0 - urllib3 1.26.7
[gallery-dl][debug] Starting DownloadJob for 'https://[...]'
[hitomi][debug] Using HitomiTagExtractor for 'https://[...]'
[urllib3.connectionpool][debug] Starting new HTTPS connection (1): [...]:443
[urllib3.connectionpool][debug] https://[...]:443 "GET /type/[...] HTTP/1.1" 206 100
[hitomi][debug] Using HitomiGalleryExtractor for 'https://[...].html'
[urllib3.connectionpool][debug] https://[...]:443 "GET /galleries/[...].js HTTP/1.1" 200 2051
[urllib3.connectionpool][debug] https://[...]:443 "GET /gg.js HTTP/1.1" 200 5323
[urllib3.connectionpool][debug] Starting new HTTPS connection (1): [...]:443
[urllib3.connectionpool][debug] https://[...]:443 "GET /images/[...].png HTTP/1.1" 403 153
[downloader.http][warning] '403 Forbidden' for 'https://[...].png'
gallery-dl --version
1.20.3
@Hrxn
Copy link
Contributor

Hrxn commented Feb 2, 2022

Looks like a site change... again

@yindaheng98
Copy link

same error, how to fix?

@mikf
Copy link
Owner

mikf commented Feb 2, 2022

I don't think this is fixable. Hitomi might have blocked any access to the original files and made it only possible to download the .webp or .avif versions.

Maybe there is a combination of HTTP headers and cookies that prevents these 403 errors, but I haven't found anything yet.

@Hrxn
Copy link
Contributor

Hrxn commented Feb 3, 2022

FWIW, Hitomi has a download button for every gallery/set giving you a zipfile, apparently the images are .webp files as well.

mikf added a commit that referenced this issue Feb 4, 2022
default is 'webp' since downloading original files is no longer allowed
@mikf
Copy link
Owner

mikf commented Feb 4, 2022

These ZIP files had the original JPEG or PNG files in them when I checked a month ago. The issue tracker on Hitomi-Downloader also says that it's only possible to download .webp or .avif anymore, so that's that.

The changes in 86fa412 now make it download the .webp files by default. Guess I'll close this issue.

@mikf mikf closed this as completed Feb 4, 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

4 participants