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

imagebam not working. #1534

Closed
junomarian opened this issue May 7, 2021 · 3 comments
Closed

imagebam not working. #1534

junomarian opened this issue May 7, 2021 · 3 comments

Comments

@junomarian
Copy link

junomarian commented May 7, 2021

[imagebam][error] An unexpected error occurred: AttributeError - 'NoneType' object has no attribute 'rpartition'.

Looks like they updated their site.

@mikf
Copy link
Owner

mikf commented May 7, 2021

fixed in 15b0241 and in the new release

@mikf mikf closed this as completed May 7, 2021
@junomarian
Copy link
Author

junomarian commented May 7, 2021

fixed in 15b0241 and in the new release

Still not working,

$ gallery-dl https://www.imagebam.com/image/84e1fa1349801043
[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 .

$ gallery-dl --verbose https://www.imagebam.com/image/84e1fa1349801043
[gallery-dl][debug] Version 1.17.4
[gallery-dl][debug] Python 3.9.4 - Linux-4.14.141+-aarch64-with-libc
[gallery-dl][debug] requests 2.25.1 - urllib3 1.26.4
[gallery-dl][debug] Starting DownloadJob for 'https://www.imagebam.com/image/84e1fa1349801043'
[imagebam][debug] Using ImagebamImageExtractor for 'https://www.imagebam.com/image/84e1fa1349801043'[urllib3.connectionpool][debug] Starting new HTTPS connection (1): www.imagebam.com:443
[urllib3.connectionpool][debug] https://www.imagebam.com:443 "GET /image/84e1fa1349801043 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 "/data/data/com.termux/files/usr/lib/python3.9/site-packages/gallery_dl/job.py", line 77, in run
    for msg in self.extractor:
  File "/data/data/com.termux/files/usr/lib/python3.9/site-packages/gallery_dl/extractor/imagebam.py", line 114, in items
    self.get_image_data(data)
  File "/data/data/com.termux/files/usr/lib/python3.9/site-packages/gallery_dl/extractor/imagebam.py", line 24, in get_image_data
    filename = text.unescape(text.extract(page, 'alt="', '"', pos)[0])
  File "/data/data/com.termux/files/usr/lib/python3.9/html/__init__.py", line 130, in unescape
    if '&' not in s:
TypeError: argument of type 'NoneType' is not iterable

@mikf mikf reopened this May 7, 2021
@mikf
Copy link
Owner

mikf commented May 7, 2021

Well, the test cases work ...
It needs some extra cookies to not show the "Continue to your image" page, so for now export browser cookies and use those.

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