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

[KemonoParty] TypeError - '<' not supported between instances of 'NoneType' and 'str'. #5692

Closed
bossanovaorca opened this issue Jun 5, 2024 · 1 comment

Comments

@bossanovaorca
Copy link

when I run gallery-dl on my kemono party favorites (https://kemono.su/favorites), it seems to error out when it reaches a user with no uploads. I was able to get around the issue by unfavoriting the user before running gallery-dl, but ideally I think gallery-dl should handle this case so that we can favorite artists while waiting for uploads to appear in the future. Here is the verbose error log:

> gallery-dl.exe https://kemono.su/favorites --verbose
[gallery-dl][debug] Version 1.27.0 - Executable (stable/windows)
[gallery-dl][debug] Python 3.8.10 - Windows-10-10.0.19045
[gallery-dl][debug] requests 2.31.0 - urllib3 2.1.0
[gallery-dl][debug] Configuration Files ['%USERPROFILE%\\gallery-dl\\config.json', 'C:\\Users\\COMPUTER\\scoop\\apps\\gallery-dl\\current\\gallery-dl.conf']
[gallery-dl][debug] Starting DownloadJob for 'https://kemono.su/favorites'
[kemonoparty][debug] Using KemonopartyFavoriteExtractor for 'https://kemono.su/favorites'
[kemonoparty][debug] Sleeping 10.00 seconds (extractor)
[urllib3.connectionpool][debug] Starting new HTTPS connection (1): kemono.su:443
[urllib3.connectionpool][debug] https://kemono.su:443 "GET /api/v1/account/favorites?type=artist HTTP/1.1" 200 None
[kemonoparty][error] An unexpected error occurred: TypeError - '<' not supported between instances of 'NoneType' and 'str'. 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 "gallery_dl\job.pyc", line 150, in run
  File "gallery_dl\extractor\kemonoparty.pyc", line 521, in items
TypeError: '<' not supported between instances of 'NoneType' and 'str'

running gallery-dl directly on the empty account (https://kemono.su/gumroad/user/shengtian) seems to handle it just fine so I may be wrong with my assumption

> gallery-dl.exe https://kemono.su/gumroad/user/shengtian --verbose
[gallery-dl][debug] Version 1.27.0 - Executable (stable/windows)
[gallery-dl][debug] Python 3.8.10 - Windows-10-10.0.19045
[gallery-dl][debug] requests 2.31.0 - urllib3 2.1.0
[gallery-dl][debug] Configuration Files ['%USERPROFILE%\\gallery-dl\\config.json', 'C:\\Users\\COMPUTER\\scoop\\apps\\gallery-dl\\current\\gallery-dl.conf']
[gallery-dl][debug] Starting DownloadJob for 'https://kemono.su/gumroad/user/shengtian'
[kemonoparty][debug] Using KemonopartyUserExtractor for 'https://kemono.su/gumroad/user/shengtian'
[kemonoparty][debug] Sleeping 10.00 seconds (extractor)
[urllib3.connectionpool][debug] Starting new HTTPS connection (1): kemono.su:443
[urllib3.connectionpool][debug] https://kemono.su:443 "GET /api/v1/gumroad/user/shengtian?o=0 HTTP/1.1" 200 22
[kemonoparty][info] No results for https://kemono.su/gumroad/user/shengtian
@mikf
Copy link
Owner

mikf commented Jun 5, 2024

Fixed in 2cab87c

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