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

[koharu] [NSFW] Got a keyError 'id' while downloading a gallery #6088

Closed
SilverMushroom2 opened this issue Aug 25, 2024 · 1 comment
Closed

Comments

@SilverMushroom2
Copy link

Hey, I was running a nightly build due to the latest build giving an unsupported url error when inputting a koharu gallery, despite it being on the supported website list. Here's the verbose log, with directory names redacted for privacy :

Golden Shiitake>"G:\Dir A\gallery-dl_windows.exe" -d"G:\Dir A\Dir B\Dir C" https://koharu.to/g/23443/c75523adfadb --verbose
[gallery-dl][debug] Version 1.27.4-dev:2024.08.25 - Executable (dev/windows)
[gallery-dl][debug] Python 3.12.4 - Windows-10-10.0.19045-SP0
[gallery-dl][debug] requests 2.31.0 - urllib3 2.2.2
[gallery-dl][debug] Configuration Files ['%APPDATA%\gallery-dl\config.json']
[gallery-dl][debug] Starting DownloadJob for 'https://koharu.to/g/23443/c75523adfadb'
[koharu][debug] Using KoharuGalleryExtractor for 'https://koharu.to/g/23443/c75523adfadb'
[urllib3.connectionpool][debug] Starting new HTTPS connection (1): api.koharu.to:443
[urllib3.connectionpool][debug] https://api.koharu.to:443 "GET /books/detail/23443/c75523adfadb HTTP/11" 200 None
[koharu][error] An unexpected error occurred: KeyError - 'id'. Please run gallery-dl again with the --verbose flag, copy its output and report this issue on https://github.com/mikf/gallery-dl/issues .
[koharu][debug]
Traceback (most recent call last):
File "gallery_dl\job.py", line 151, in run
File "gallery_dl\extractor\common.py", line 669, in items
File "gallery_dl\extractor\koharu.py", line 131, in images
KeyError: 'id'

@SilverMushroom2 SilverMushroom2 changed the title [koharu] Got a keyError 'id' while downloading a gallery [koharu] [NSFW] Got a keyError 'id' while downloading a gallery Aug 25, 2024
@mikf
Copy link
Owner

mikf commented Aug 27, 2024

Some galleries don't seem to allow accessing and downloading their original quality archive. For this one in particular, 1280p is the best available format: -o format=1280

mikf added a commit that referenced this issue Aug 29, 2024
- allow specifying more than one possible format
- ignore not available formats
@mikf mikf closed this as completed Aug 29, 2024
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

2 participants