mikf / gallery-dl

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

[Kemonoparty] TypeError #1663

Closed austblack88 closed 3 years ago

austblack88 commented 3 years ago

So I'm currently running into this TypeError issue with the kemonoparty extractor:

[gallery-dl][debug] Version 1.18.1-dev
[gallery-dl][debug] Python 3.8.3 - Windows-10-10.0.19041-SP0
[gallery-dl][debug] requests 2.25.1 - urllib3 1.26.4
[gallery-dl][debug] Starting DownloadJob for 'https://kemono.party/patreon/user/3605855'
[kemonoparty][debug] Using KemonopartyUserExtractor for 'https://kemono.party/patreon/user/3605855'
[urllib3.connectionpool][debug] Starting new HTTPS connection (1): kemono.party:443
[urllib3.connectionpool][debug] https://kemono.party:443 "GET /patreon/user/3605855 HTTP/1.1" 200 None
[kemonoparty][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 .
[kemonoparty][debug]
Traceback (most recent call last):
  File "C:\Python38\lib\site-packages\gallery_dl\job.py", line 75, in run
    for msg in self.extractor:
  File "C:\Python38\lib\site-packages\gallery_dl\extractor\kemonoparty.py", line 30, in items
    username = text.unescape(text.extract(
  File "C:\Python38\lib\html\__init__.py", line 130, in unescape
    if '&' not in s:
TypeError: argument of type 'NoneType' is not iterable

Any assistance would be greatly appreciated.

mikf commented 3 years ago

This should be fixed in the latest -dev version. (#1652)

austblack88 commented 3 years ago

Is the current dev version 1.18.1-dev? Because that's the version I'm running.

mikf commented 3 years ago

1.18.1-dev can be anything between 1.18.0 and the not yet released 1.18.1. The error would still happen if your -dev snapshot is from before https://github.com/mikf/gallery-dl/commit/759735fb023cb7f80c2f467127fc1d886305e3b2. Update your current 1.18.1-dev to a newer 1.18.1-dev and this'll be fixed.