mikf / gallery-dl

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

Problem since this morning with Imagebam galleries #2334

Closed Akktustakki04 closed 2 years ago

Akktustakki04 commented 2 years ago

I have tried several galleries and they all give the same error as below

C:>gallery-dl -v https://www.imagebam.com/gallery/b2pq7ew6l8ubdmf469z41wxlvr7f6vzi [gallery-dl][debug] Version 1.20.5 - Executable [gallery-dl][debug] Python 3.7.9 - Windows-10-10.0.19041 [gallery-dl][debug] requests 2.27.1 - urllib3 1.26.8 [gallery-dl][debug] Starting DownloadJob for 'https://www.imagebam.com/gallery/b2pq7ew6l8ubdmf469z41wxlvr7f6vzi' [imagebam][debug] Using ImagebamGalleryExtractor for 'https://www.imagebam.com/gallery/b2pq7ew6l8ubdmf469z41wxlvr7f6vzi' [urllib3.connectionpool][debug] Starting new HTTPS connection (1): www.imagebam.com:443 [urllib3.connectionpool][debug] https://www.imagebam.com:443 "GET /gallery/b2pq7ew6l8ubdmf469z41wxlvr7f6vzi HTTP/1.1" 200 None [urllib3.connectionpool][debug] https://www.imagebam.com:443 "GET /gallery/b2pq7ew6l8ubdmf469z41wxlvr7f6vzi?page=2 HTTP/1.1" 200 None [urllib3.connectionpool][debug] https://www.imagebam.com:443 "GET /image/5b90bc245114056 HTTP/1.1" 200 None [urllib3.connectionpool][debug] https://www.imagebam.com:443 "GET /image/5b90bc245114056 HTTP/1.1" 200 None [imagebam][error] An unexpected error occurred: TypeError - argument of type 'NoneType' is not iterable. Please run gallery-dl again with the --verbose flag, copy its output and report this issue on https://github.com/mikf/gallery-dl/issues . [imagebam][debug] Traceback (most recent call last): File "gallery_dl\job.pyc", line 76, in run File "gallery_dl\extractor\imagebam.pyc", line 80, in items File "gallery_dl\extractor\imagebam.pyc", line 40, in get_image_data File "html__init__.pyc", line 130, in unescape TypeError: argument of type 'NoneType' is not iterable

Akktustakki04 commented 2 years ago

Hello, I am aware after reading on here that this issue has cropped up and supposedly been solved but could any kind soul please explain how I can go about solving the issue it would be greatly appreciated! Many thanks in advance for any assistance

mikf commented 2 years ago

No, this is a new problem. The old method of getting around NSFW pages doesn't work anymore, which is why you get this error.

This will be fixed in the next version (https://github.com/mikf/gallery-dl/commit/1c79044433456b43e26ce8362380d2c6e2ed62bf), but you can use -o cookies.nsfw_inter=\"1\" as a workaround in the meantime:

$ gallery-dl -o cookies.nsfw_inter=\"1\" https://www.imagebam.com/gallery/b2pq7ew6l8ubdmf469z41wxlvr7f6vzi

(yes, the \" are necessary)