Quote:
Originally Posted by Homer55
how do I make this plugin stop modifying existing collections?, i have a book, I put it in collection A, I run the plugin, I go to my kindle, I upgrade collections using librariansync (i use update not rebuild), things are ok, I delete book from calibre becuase I don't want to have the same book twice, next time I need to upload a book I run plugin from calibre (book in collection A no longer in calibre) another book also in collection A, previous book not longer in collection A and new book is ok. The thing that has stopped me from finding why is that it doesn't do this always, sometimes it does and sometimes it doesn't.
|
ignore this but I have a problem that I think may be related, I try to edit the collections manually and this error appears
Code:
calibre, version 6.0.0
ERROR: Unhandled exception: <b>AttributeError</b>:type object 'Qt' has no attribute 'ItemFlags'
calibre 6.0 embedded-python: True
Linux-5.15.53-1-MANJARO-x86_64-with-glibc2.35 Linux ('64bit', 'ELF')
('Linux', '5.15.53-1-MANJARO', '#1 SMP PREEMPT Thu Jul 7 16:56:55 UTC 2022')
Python 3.10.1
Interface language: None
Successfully initialized third party plugins: Gather KFX-ZIP (from KFX Input) (1, 49, 0) && Package KFX (from KFX Input) (1, 49, 0) && Amazon.com Multiple Countries (1, 0, 0) && Count Pages (1, 11, 2) && Embed Comic Metadata (1, 6, 1) && EpubMerge (2, 13, 0) && FanFicFare (4, 14, 0) && Generate Cover (2, 1, 1) && Goodreads (1, 5, 3) && Goodreads Sync (1, 15, 4) && KFX metadata reader (from KFX Input) (1, 49, 0) && KFX Input (1, 49, 0) && Set KFX metadata (from KFX Output) (1, 63, 0) && KFX Output (1, 63, 0) && Kindle Collections (1, 7, 29) && Kindle hi-res covers (0, 5, 0) && KindleUnpack - The Plugin (0, 83, 1) && KindleXRay (0, 0, 6) && Manage Series (1, 3, 0) && Quality Check (1, 12, 0) && Reading List (1, 12, 0) && WordDumb (3, 23, 1)
Traceback (most recent call last):
File "calibre_plugins.kindle_collections.kindle_edit_collections", line 333, in collection_combo_index_changed
self.refresh_table(collection)
File "calibre_plugins.kindle_collections.kindle_edit_collections", line 406, in refresh_table
self.edit_w._table.populate_table(self.sorted_book_codes, self.book_details, self.sort_field, self.sort_order)
File "calibre_plugins.kindle_collections.kindle_edit_collections", line 530, in populate_table
self.populate_table_row(row, row_data[index])
File "calibre_plugins.kindle_collections.kindle_edit_collections", line 554, in populate_table_row
item = CheckableTableWidgetItem(data['include'])
File "calibre_plugins.kindle_collections.utilities", line 247, in __init__
self.setFlags(Qt.ItemFlags(Qt.ItemIsSelectable | Qt.ItemIsUserCheckable | Qt.ItemIsEnabled ))
AttributeError: type object 'Qt' has no attribute 'ItemFlags'