mikf / gallery-dl

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

[kemonoparty] `TypeError - '<' not supported between instances of 'NoneType' and 'str'.` when an empty account is in a user's favorites #5721

Closed bossanovaorca closed 1 week ago

bossanovaorca commented 2 weeks ago

when running gallery-dl https://kemono.su/favorites the program errors out when it encounters an account with no content uploaded. The program runs as expected after unfavoriting those accounts. Here is the verbose log message:

> 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'
[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'
mikf commented 2 weeks ago

You already reported this a week ago (#5692), and it got fixed (2cab87c5b6e434892a2521d6b9d48fc9625b78a7).

There hasn't been a new gallery-dl release since. Try --update-to dev or manually grab a file from https://github.com/gdl-org/builds/releases in case the first method doesn't work (new feature etc).