You are amazing, thank you! It works.
I had several books without genre. I remember, there were some books under "no genre". But I changed that before the error occurred.
I marked all books in edit reading goal because I wanted to check the genre and stumbled over an error. I use several genres and some of them have a child genre (Fantasy, Fantasy.Urban Fantasy). If in genre view I mark books and a child genre and then click "mark selected books" everything works fine. If I mark the main genre and some books and then click "mark selected books" I get an error:
Code:
calibre, version 7.16.0
FEHLER: Unbehandelter Ausnahmefehler: <b>ValueError</b>:invalid literal for int() with base 10: ''
calibre 7.16 embedded-python: True
Linux-5.15.0-116-generic-x86_64-with-glibc2.38 Linux ('64bit', 'ELF')
('Linux', '5.15.0-116-generic', '#126-Ubuntu SMP Mon Jul 1 10:14:24 UTC 2024')
Python 3.11.5
Interface language: de
EXE path: /app/lib/calibre/bin/calibre
Traceback (most recent call last):
File "calibre_plugins.Reading_Goal.main", line 2587, in handler
self.mark_books()
File "calibre_plugins.Reading_Goal.main", line 2761, in mark_books
marked_ids.append(int(item.child(idx).text(1)))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
ValueError: invalid literal for int() with base 10: ''