Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Plugins

Notices

Reply
 
Thread Tools Search this Thread
Old 07-14-2022, 03:58 PM   #751
JimmXinu
Plugin Developer
JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.
 
JimmXinu's Avatar
 
Posts: 6,358
Karma: 3966377
Join Date: Dec 2011
Location: Midwest USA
Device: Kindle Paperwhite(10th)
New Version Released

Version 2.1.1 - 14 Jul 2022
- Fix for settings export in Calibre6/Qt6

Same as test version a couple days ago.
JimmXinu is offline   Reply With Quote
Old 07-30-2022, 10:59 AM   #752
JimmXinu
Plugin Developer
JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.
 
JimmXinu's Avatar
 
Posts: 6,358
Karma: 3966377
Join Date: Dec 2011
Location: Midwest USA
Device: Kindle Paperwhite(10th)
New Test Version

2022-07-30
- Use cal6 icon theme system to allow plugin icon customization--but don't require pluginname/images/

Last edited by JimmXinu; 08-02-2022 at 10:28 AM. Reason: Remove obsolete test version
JimmXinu is offline   Reply With Quote
Advert
Old 08-02-2022, 10:28 AM   #753
JimmXinu
Plugin Developer
JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.
 
JimmXinu's Avatar
 
Posts: 6,358
Karma: 3966377
Join Date: Dec 2011
Location: Midwest USA
Device: Kindle Paperwhite(10th)
New Version Released

Version 2.2.0 - 2022-08-02
- Use cal6 icon theme system to allow plugin icon customization
JimmXinu is offline   Reply With Quote
Old 08-29-2022, 09:31 PM   #754
Rellwood
Library Breeder (She/Her)
Rellwood ought to be getting tired of karma fortunes by now.Rellwood ought to be getting tired of karma fortunes by now.Rellwood ought to be getting tired of karma fortunes by now.Rellwood ought to be getting tired of karma fortunes by now.Rellwood ought to be getting tired of karma fortunes by now.Rellwood ought to be getting tired of karma fortunes by now.Rellwood ought to be getting tired of karma fortunes by now.Rellwood ought to be getting tired of karma fortunes by now.Rellwood ought to be getting tired of karma fortunes by now.Rellwood ought to be getting tired of karma fortunes by now.Rellwood ought to be getting tired of karma fortunes by now.
 
Rellwood's Avatar
 
Posts: 1,161
Karma: 1900479
Join Date: Apr 2015
Location: Fullerton, California
Device: Kobo Aura HD (1) PW3 (4) PW3 2019 new edition (1)
My current saved images for bookcovers is not showing, but when I try to download the files again, they are not importing because the plugin says the file is already there. Newest version plugin and Calibre

Nevermind, the image folder in the appdata was empty after the recent updates,so I found the images and scooted them into the folder without manually entering them through the plugin. The plugin didn't "see" them but they were in the folder. Fixed it. Why did I lose all the covers in the first place, and is this going to happen again?

Last edited by Rellwood; 08-29-2022 at 09:38 PM.
Rellwood is offline   Reply With Quote
Old 08-29-2022, 09:44 PM   #755
JimmXinu
Plugin Developer
JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.
 
JimmXinu's Avatar
 
Posts: 6,358
Karma: 3966377
Join Date: Dec 2011
Location: Midwest USA
Device: Kindle Paperwhite(10th)
Quote:
Originally Posted by Rellwood View Post
My current saved images for bookcovers is not showing, but when I try to download the files again, they are not importing because the plugin says the file is already there. Newest version plugin and Calibre
I was surprised to see my GC images missing when I checked this.

Turns out GC saves it's images in calibre\resources\images\generate_cover. And I think Calibre6 deleted calibre\resources\images when it stopped keeping its images there?

Or else I removed it while testing the icons in themes changes.

Probably should move that somewhere else if Calibre does remove it.

I'm not seeing anything happen that "says the file is already there". Do you have any details?
JimmXinu is offline   Reply With Quote
Advert
Old 08-30-2022, 12:03 AM   #756
BetterRed
null operator (he/him)
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 20,616
Karma: 26960534
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Quote:
Originally Posted by JimmXinu View Post
I was surprised to see my GC images missing when I checked this.

Turns out GC saves it's images in calibre\resources\images\generate_cover. And I think Calibre6 deleted calibre\resources\images when it stopped keeping its images there?

Or else I removed it while testing the icons in themes changes.
FWIW: I noticed my CALIBRE_CONFIG_DIRECTORY->\resources\images folder was missing a day or two after I installed 6.3. Assuming it was something I'd done inadvertently I just restored my most recent backup of that folder and thought no more about it.

BR
BetterRed is offline   Reply With Quote
Old 08-30-2022, 06:45 AM   #757
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 29,869
Karma: 55267620
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Weird. Mine is still there (6.3, win x64)
theducks is online now   Reply With Quote
Old 08-30-2022, 11:10 AM   #758
JimmXinu
Plugin Developer
JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.
 
JimmXinu's Avatar
 
Posts: 6,358
Karma: 3966377
Join Date: Dec 2011
Location: Midwest USA
Device: Kindle Paperwhite(10th)
I asked Kovid in PM if cal6 ever deletes the contents of resources/images, he said, "yes, when migrating legacy icon themes. That is if you have a icon-theme.json in that folder."

So it makes sense that some of us (who didn't use icon themes in cal5) wouldn't see this issue.

Since it's only while migrating, it shouldn't be an ongoing issue once you've switched to cal6.

Changing where GC keeps its images is easy--migrating them for existing users is less easy. Should it be automatic and silent? Or inform/ask the user? Under calibre\plugins is the obvious new place.
JimmXinu is offline   Reply With Quote
Old 08-30-2022, 02:22 PM   #759
JimmXinu
Plugin Developer
JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.
 
JimmXinu's Avatar
 
Posts: 6,358
Karma: 3966377
Join Date: Dec 2011
Location: Midwest USA
Device: Kindle Paperwhite(10th)
New Test Version

2022-08-30
- Move where GC stores cover images from resources/images/generate_cover to plugins/generate_cover

Attached version uses the new dir and does a one-time copy(not move) of configured images from resources/images/generate_cover to plugins/generate_cover.

Tested with Calibre 2, 5 & 6, but only on Win10. I don't have mac or linux available to test with right now. I did try to use a cross-platform safe method.

Last edited by JimmXinu; 09-08-2022 at 01:07 PM. Reason: Remove obsolete test version
JimmXinu is offline   Reply With Quote
Old 08-30-2022, 05:35 PM   #760
BetterRed
null operator (he/him)
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 20,616
Karma: 26960534
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Quote:
Originally Posted by JimmXinu View Post
I asked Kovid in PM if cal6 ever deletes the contents of resources/images, he said, "yes, when migrating legacy icon themes. That is if you have a icon-theme.json in that folder."
That rings a bell, I had an icon-theme.json in there, not sure why, when, or from whence it came, but since I removed it my folder of images has remained intact. Any notion that I would want an icon theme is risible.

And now I can see that I raised the issue when V6 was released, and KG told me to remove that file. It's in the middle of this thread ==>> [Closed] Issues with Version 6

BR
BetterRed is offline   Reply With Quote
Old 08-31-2022, 04:24 PM   #761
Rellwood
Library Breeder (She/Her)
Rellwood ought to be getting tired of karma fortunes by now.Rellwood ought to be getting tired of karma fortunes by now.Rellwood ought to be getting tired of karma fortunes by now.Rellwood ought to be getting tired of karma fortunes by now.Rellwood ought to be getting tired of karma fortunes by now.Rellwood ought to be getting tired of karma fortunes by now.Rellwood ought to be getting tired of karma fortunes by now.Rellwood ought to be getting tired of karma fortunes by now.Rellwood ought to be getting tired of karma fortunes by now.Rellwood ought to be getting tired of karma fortunes by now.Rellwood ought to be getting tired of karma fortunes by now.
 
Rellwood's Avatar
 
Posts: 1,161
Karma: 1900479
Join Date: Apr 2015
Location: Fullerton, California
Device: Kobo Aura HD (1) PW3 (4) PW3 2019 new edition (1)
Now I am wondering about other images from other plugins where I won't know until I use the plugin.
Rellwood is offline   Reply With Quote
Old 08-31-2022, 05:07 PM   #762
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 29,869
Karma: 55267620
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Quote:
Originally Posted by Rellwood View Post
Now I am wondering about other images from other plugins where I won't know until I use the plugin.
This may be one of the few times Kovid did not think of every gotcha before making a change (and might explain why some of my alternate cover images are gone.).
I treated Resources/... as a USER customized / shared (by multiple PI) location.
Well, another reason for keeping a down rev version on another computer (or the backup from before version changes)
theducks is online now   Reply With Quote
Old 09-03-2022, 07:23 PM   #763
Rellwood
Library Breeder (She/Her)
Rellwood ought to be getting tired of karma fortunes by now.Rellwood ought to be getting tired of karma fortunes by now.Rellwood ought to be getting tired of karma fortunes by now.Rellwood ought to be getting tired of karma fortunes by now.Rellwood ought to be getting tired of karma fortunes by now.Rellwood ought to be getting tired of karma fortunes by now.Rellwood ought to be getting tired of karma fortunes by now.Rellwood ought to be getting tired of karma fortunes by now.Rellwood ought to be getting tired of karma fortunes by now.Rellwood ought to be getting tired of karma fortunes by now.Rellwood ought to be getting tired of karma fortunes by now.
 
Rellwood's Avatar
 
Posts: 1,161
Karma: 1900479
Join Date: Apr 2015
Location: Fullerton, California
Device: Kobo Aura HD (1) PW3 (4) PW3 2019 new edition (1)
Quote:
Originally Posted by JimmXinu View Post
I was surprised to see my GC images missing when I checked this.

Turns out GC saves it's images in calibre\resources\images\generate_cover. And I think Calibre6 deleted calibre\resources\images when it stopped keeping its images there?

Or else I removed it while testing the icons in themes changes.

Probably should move that somewhere else if Calibre does remove it.

I'm not seeing anything happen that "says the file is already there". Do you have any details?
I use a split pane view in explorer (I use Directory Opus file manager) so I just copied over the images from one instance of the plugin I had into the current folder without manually entering them via the plugin in the booklist. Because I didn't enter them in with the plugin it didn't know they were in the folder, so they didn't show up and when I tried to manually enter them in through the plugin they clashed with the ones in the folder that wern't initally recognized.
Rellwood is offline   Reply With Quote
Old 09-03-2022, 08:32 PM   #764
JimmXinu
Plugin Developer
JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.
 
JimmXinu's Avatar
 
Posts: 6,358
Karma: 3966377
Join Date: Dec 2011
Location: Midwest USA
Device: Kindle Paperwhite(10th)
Quote:
Originally Posted by Rellwood View Post
I use a split pane view in explorer (I use Directory Opus file manager) so I just copied over the images from one instance of the plugin I had into the current folder without manually entering them via the plugin in the booklist. Because I didn't enter them in with the plugin it didn't know they were in the folder, so they didn't show up and when I tried to manually enter them in through the plugin they clashed with the ones in the folder that wern't initally recognized.
As you found, copying them yourself on disk does not make GC aware of the images again.

Either a) don't do that , just add the images from where ever they are back to GC (it accepts drag/drop), or; b) just click Yes when it asks you about overwriting each one.

I see I need to revisit this issue more--There are places in GC that use resources/images/generate_cover as temporary directory...

Plus it would be nice if the 'overwrite?' dialog gave the file name.
JimmXinu is offline   Reply With Quote
Old 09-07-2022, 06:29 PM   #765
JimmXinu
Plugin Developer
JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.
 
JimmXinu's Avatar
 
Posts: 6,358
Karma: 3966377
Join Date: Dec 2011
Location: Midwest USA
Device: Kindle Paperwhite(10th)
New Test Version

2022-08-30
- Move where GC puts temporary files during setting Import/Export to plugins/generate_cover instead of resources/images/generate_cover.
- Include file name when warning about image file overwrite.

It would be better if GC used a proper temp file, but the JSONConfig class it uses insists on something relative to the calibre settings dir.

Also includes:
Quote:
Originally Posted by JimmXinu View Post
New Test Version

2022-08-30
- Move where GC stores cover images from resources/images/generate_cover to plugins/generate_cover

Attached version uses the new dir and does a one-time copy(not move) of configured images from resources/images/generate_cover to plugins/generate_cover.

Tested with Calibre 2, 5 & 6, but only on Win10. I don't have mac or linux available to test with right now. I did try to use a cross-platform safe method.
IMPORTANT NOTE

This version still contains a rather obscure bug I can't figure out.
  1. Create a new setting
  2. Give it a name
  3. Change which image it uses
  4. Click Save
  5. Cancel out of GC without applying the setting
  6. Open GC again

Then I get a 'Corrupted Config file' warning:
Quote:
calibre, version 6.4.0
ERROR: Corrupted Configuration File: <p>Your configuration file was corrupted (see Details).</p>)<p>Please report your exact recent actions which led to this on the MobileRead forum thread for this plugin so it can be fixed.</p><p>The configuration has been fixed automatically.</p>

Corrupted setting: "Stacked Books" has incorrect internal name of: "asdf"
After it's 'autocorrected' the config, the previously selected setting that I copied for the new one also has it's image changed.

Last edited by JimmXinu; 09-08-2022 at 01:07 PM. Reason: Remove obsolete test version
JimmXinu is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[GUI Plugin] Goodreads Sync kiwidude Plugins 1726 Yesterday 10:02 PM
[GUI Plugin] Clipboard Search kiwidude Plugins 29 04-02-2024 10:05 PM
[GUI Plugin] Open With kiwidude Plugins 403 04-01-2024 08:39 AM
[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


All times are GMT -4. The time now is 05:47 AM.


MobileRead.com is a privately owned, operated and funded community.