![]() |
#736 |
Plugin Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,971
Karma: 4604635
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
|
Generate Cover only updates the cover in Calibre's database. It doesn't change any ebook format.
By default, Calibre's Convert and Send to Device both update the metadata inside the ebook file, including cover, when run. As far as I know, anyway. It's possible that the defaults have changed, or you have changed the settings without realizing it. Calibre's Polish can be used to update the cover in ebook files in place, vs when they are converted for sent. FYI, azw3 is a newer and 'better' format than mobi for Kindle. I would recommend using it instead of mobi. I've been using it for years. |
![]() |
![]() |
![]() |
#737 |
Custom User Title
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 10,973
Karma: 75337983
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
|
If you're lazy like me and want to save a few clicks, you can make an Action Chain to run generate cover + polish book and then apply it to a keyboard shortcut.
|
![]() |
![]() |
Advert | |
|
![]() |
#738 |
Connoisseur
![]() Posts: 60
Karma: 10
Join Date: Nov 2010
Location: Niš, Srbija
Device: TCL Nxtpaper 11, Kindle PW 2024
|
Can I somehow choose, say, a second page instead of the first when choosing a cover?
|
![]() |
![]() |
![]() |
#739 |
Plugin Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,971
Karma: 4604635
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
|
I think you may be asking your question in the wrong place.
The Generate Cover plugin doesn't actually do any with the contents of ebooks. It only works on the Cover image in Calibre's library. Therefore, it has no idea about pages. |
![]() |
![]() |
![]() |
#740 |
Connoisseur
![]() Posts: 60
Karma: 10
Join Date: Nov 2010
Location: Niš, Srbija
Device: TCL Nxtpaper 11, Kindle PW 2024
|
#JimmXinu
Thanks for answer . |
![]() |
![]() |
Advert | |
|
![]() |
#741 |
Junior Member
![]() Posts: 3
Karma: 10
Join Date: Apr 2022
Device: kindle paperwhite
|
I was wondering if this has been reconsidered. I've added 200 images to the list of possible covers, but it seems I need to choose them one by one. I would love if they could just be chosen at random as material needs covers. This is especially true for using it in combination with FanFicFare.
|
![]() |
![]() |
![]() |
#742 |
Plugin Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,971
Karma: 4604635
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
|
If someone wants to add such a feature, it sounds like some users would like it.
I'm not very interested in adding it myself, mostly because of the GUI issues. How would it be presented to user? |
![]() |
![]() |
![]() |
#743 |
Junior Member
![]() Posts: 3
Karma: 10
Join Date: Apr 2022
Device: kindle paperwhite
|
I think the most straightforward would be in the Select Image section to have a third options such as
{Current Cover} {Default} {Random Image} Picture A.jpg Picture B.jpg Picture C.jpg ... |
![]() |
![]() |
![]() |
#744 | |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 31,054
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Quote:
![]() Load an array with the available file names; draw a random Integer (range check against # available) ; get the array[index] Now you just need to know Python ![]() |
|
![]() |
![]() |
![]() |
#745 |
Junior Member
![]() Posts: 3
Karma: 10
Join Date: Apr 2022
Device: kindle paperwhite
|
|
![]() |
![]() |
![]() |
#746 |
Plugin Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,971
Karma: 4604635
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
|
Yes, randomly selecting an image from a list is easy.
The issue is defining the image list. 5 minutes after implementing a simple 'random from the existing image list' feature, some one is going to want to have different image lists for different Saved Settings. |
![]() |
![]() |
![]() |
#747 |
Enthusiast
![]() ![]() Posts: 25
Karma: 140
Join Date: Jul 2022
Device: none
|
Hi, since my upgrade to Calibre 6 I'm getting an error message when trying to export a cover or import one. Is that a compatibility error with the new calibre version or is somenthing else wrong?
Export Error: calibre, version 6.0.0 ERROR: Unhandled exception: <b>AttributeError</b>:type object 'QFileDialog' has no attribute 'AnyFile' calibre 6.0 embedded-python: True Windows-10-10.0.19044 Windows ('64bit', 'WindowsPE') ('Windows', '10', '10.0.19044') Python 3.10.1 Windows: ('10', '10.0.19044', '', 'Multiprocessor Free') Interface language: en_GB Successfully initialized third party plugins: DeDRM (7, 2, 1) && Count Pages (1, 11, 2) && EpubMerge (2, 13, 0) && EpubSplit (3, 3, 0) && FanFicFare (4, 14, 0) && Favourites Menu (1, 1, 0) && Generate Cover (2, 1, 0) && Job Spy (1, 0, 191) && Quality Check (1, 12, 0) && Reading List (1, 11, 0) Traceback (most recent call last): File "calibre_plugins.generate_cover.dialogs", line 672, in export_setting File "calibre_plugins.generate_cover.dialogs", line 726, in pick_archive_name_to_export AttributeError: type object 'QFileDialog' has no attribute 'AnyFile' Import Error: calibre, version 6.0.0 ERROR: Unhandled exception: <b>TypeError</b>:join() argument must be str, bytes, or os.PathLike object, not 'NoneType' calibre 6.0 embedded-python: True Windows-10-10.0.19044 Windows ('64bit', 'WindowsPE') ('Windows', '10', '10.0.19044') Python 3.10.1 Windows: ('10', '10.0.19044', '', 'Multiprocessor Free') Interface language: en_GB Successfully initialized third party plugins: DeDRM (7, 2, 1) && Count Pages (1, 11, 2) && EpubMerge (2, 13, 0) && EpubSplit (3, 3, 0) && FanFicFare (4, 14, 0) && Favourites Menu (1, 1, 0) && Generate Cover (2, 1, 0) && Job Spy (1, 0, 191) && Quality Check (1, 12, 0) && Reading List (1, 11, 0) Traceback (most recent call last): File "calibre_plugins.generate_cover.dialogs", line 640, in import_setting File "calibre_plugins.generate_cover.dialogs", line 851, in confirm_add_image File "ntpath.py", line 117, in join File "genericpath.py", line 152, in _check_arg_types TypeError: join() argument must be str, bytes, or os.PathLike object, not 'NoneType' |
![]() |
![]() |
![]() |
#748 |
Plugin Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,971
Karma: 4604635
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
|
New Test Version
2022-07-12 - mode=AnyFile in qt5 & qt6 I could duplicate the export error and fixed it, but not the import error. nan1923, can you post the zip file for the GC setting you were importing? Last edited by JimmXinu; 07-14-2022 at 03:59 PM. Reason: Remove obsolete test version |
![]() |
![]() |
![]() |
#749 |
Enthusiast
![]() ![]() Posts: 25
Karma: 140
Join Date: Jul 2022
Device: none
|
Import/Export Error
Hi, thanks for the fast response!
The export is also fixed in my calibre, thanks! The import error for some reason doesn't appear anymore, maybe your update fixed it by accident or the reboot of my pc fixed it. No idea what it was, but it works now! Thanks! Different plugin, but also one written by you: In the FanFicfare plugin, when I try to search the personal.ini or the default.ini I also get an error (calibre 6 seems to cause quite a few problems for plugins): calibre, version 6.0.0 ERROR: Unhandled exception: <b>AttributeError</b>:'QTextCursor' object has no attribute 'Right' calibre 6.0 embedded-python: True Windows-10-10.0.19044 Windows ('64bit', 'WindowsPE') ('Windows', '10', '10.0.19044') Python 3.10.1 Windows: ('10', '10.0.19044', '', 'Multiprocessor Free') Interface language: en_GB Successfully initialized third party plugins: DeDRM (7, 2, 1) && Count Pages (1, 11, 2) && EpubMerge (2, 13, 0) && EpubSplit (3, 3, 0) && FanFicFare (4, 14, 0) && Favourites Menu (1, 1, 0) && Generate Cover (2, 1, 1) && Job Spy (1, 0, 191) && Quality Check (1, 12, 0) && Reading List (1, 12, 0) Traceback (most recent call last): File "calibre_plugins.fanficfare_plugin.dialogs", line 1453, in find File "calibre_plugins.fanficfare_plugin.dialogs", line 1469, in moveCursor AttributeError: 'QTextCursor' object has no attribute 'Right' |
![]() |
![]() |
![]() |
#750 |
Plugin Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,971
Karma: 4604635
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
|
Ideally, you should post to the FanFicFare thread, not tack onto an unrelated post in an unrelated thread. I link my plugin threads in my signature.
I've posted a new FFF test version. |
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
[GUI Plugin] Open With | kiwidude | Plugins | 404 | 02-21-2025 05:42 AM |
[GUI Plugin] Goodreads Sync | kiwidude | Plugins | 1781 | 02-12-2025 07:09 PM |
[GUI Plugin] Clipboard Search | kiwidude | Plugins | 29 | 04-02-2024 10:05 PM |
[GUI Plugin] User Category | kiwidude | Plugins | 123 | 03-16-2024 11:59 PM |
[GUI Plugin] Quick Preferences | kiwidude | Plugins | 62 | 03-16-2024 11:47 PM |