reluce / szurubooru-toolkit

Python package and script collection to manage your szurubooru image board.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Skipping upload on similarity check does not work anymore

LibertX opened this issue · comments

Hello,

The skipping that occus when similarity checks occurs is now broken:

[WARNING] [11.12.2023, 03:09:42 UTC] [upload_media.check_similarity]: An error occured during the similarity check: Expecting value: line 1 column 1 (char 0). Skipping post...
Traceback (most recent call last):
  File "/usr/local/bin/upload-media", line 6, in <module>
    sys.exit(main())
             ^^^^^^
  File "/szurubooru-toolkit/src/szurubooru_toolkit/scripts/upload_media.py", line 327, in main
    success, saucenao_limit_reached = upload_post(
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: cannot unpack non-iterable bool object

Thanks

This error message comes from szurubooru itself. Do other posts work or is it just the same post? Depending on how you run your szurubooru instance, you can try to restart it and try again.

It is the same post.

I know this is a Szurubooru error, but Toolkit is supposed to skip the upload if similarity check fails (#36).
This seems to be broken now.

I just pushed a fix to main, can you test it?

It works now, thanks!