07-19-2022, 01:08 PM | #451 |
Guru
Posts: 996
Karma: 1183425
Join Date: Dec 2016
Location: Goiânia - Brazil
Device: iPad, Kindle Paperwhite
|
|
07-19-2022, 02:52 PM | #452 |
Plugin Developer
Posts: 6,526
Karma: 4277329
Join Date: Dec 2011
Location: Midwest USA
Device: Kindle Paperwhite(10th)
|
New Test Version Posted
2022-07-19 - Look for icon.png without images/ first. FYI, I'm not sure this is going to be the final solution. In Cal6, the get_icons(icon_name,plugin_name) does retrieval from resources/images, from a theme and then, if not in either, retrieval from the plugin zip. In past, the plugin code removed the 'images/' before looking in resources/images for custom icons, but kept it for looking inside the plugin zip. Moving the icon.png up from the images/ dir inside the plugin zip didn't work when I tried it in Cal5. As I recall, there were reasons it was in images/, but I don't remember why exactly. Regardless, it would require retesting on the all supported old versions of Calibre, in all the plugins I support. I'm not doing that, sorry. This appears to work as expected: Code:
... if not icon or icon.isNull(): icon = get_icons(icon_name.replace('images/',''),plugin_name) if not icon or icon.isNull(): icon = get_icons(icon_name,plugin_name) return icon Code:
Traceback (most recent call last): File "C:\Users\user\Desktop\nook\calibre\src\calibre\customize\zipplugin.py", line 50, in get_resources File "zipfile.py", line 1464, in read File "zipfile.py", line 1503, in open File "zipfile.py", line 1430, in getinfo KeyError: "There is no item named 'icon.png' in the archive" But it happens quite a bit, and I run calibre in debug 99.9% of the time. I could cache icons in the plugin, but then they wouldn't change if you change themes. Which isn't something that works consistently for me anyway? Last edited by JimmXinu; 07-31-2022 at 10:44 AM. Reason: Remove obsolete test version |
Advert | |
|
07-19-2022, 10:11 PM | #453 |
creator of calibre
Posts: 44,319
Karma: 23661992
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
https://github.com/kovidgoyal/calibr...41ede054db0e34
You will of course need to version check before using the new parameter. |
07-20-2022, 02:29 PM | #454 |
Plugin Developer
Posts: 6,526
Karma: 4277329
Join Date: Dec 2011
Location: Midwest USA
Device: Kindle Paperwhite(10th)
|
Thanks.
I will post plugin test version(s) that use this after Calibre 6.2 comes out. |
07-30-2022, 10:24 AM | #455 |
Plugin Developer
Posts: 6,526
Karma: 4277329
Join Date: Dec 2011
Location: Midwest USA
Device: Kindle Paperwhite(10th)
|
New Test Version Posted
2022-07-30 - Use cal6 icon theme system to allow plugin icon customization--but don't require pluginname/images/ Should work correctly now with new icon theme system and old system and internal images without reporting extra errors (cal6.2+). thiago.eec, I'd appreciate it if you'd confirm if this solves the issue for you; thanks. Last edited by JimmXinu; 07-31-2022 at 10:43 AM. Reason: Remove obsolete test version |
Advert | |
|
07-31-2022, 08:28 AM | #456 |
Guru
Posts: 996
Karma: 1183425
Join Date: Dec 2016
Location: Goiânia - Brazil
Device: iPad, Kindle Paperwhite
|
|
07-31-2022, 10:43 AM | #457 |
Plugin Developer
Posts: 6,526
Karma: 4277329
Join Date: Dec 2011
Location: Midwest USA
Device: Kindle Paperwhite(10th)
|
New Version Released
Version 2.14.0 - 2022-07-31 - Use Cal6 get_icons() so icon themes apply - Update Translations |
09-09-2022, 11:03 AM | #458 |
Plugin Developer
Posts: 6,526
Karma: 4277329
Join Date: Dec 2011
Location: Midwest USA
Device: Kindle Paperwhite(10th)
|
New Test Version
2022-09-09 - Fix remove/up/down rows when lower selected first. Issue found in Reading List. Last edited by JimmXinu; 09-13-2022 at 11:12 AM. Reason: Remove obsolete test version |
09-13-2022, 11:11 AM | #459 |
Plugin Developer
Posts: 6,526
Karma: 4277329
Join Date: Dec 2011
Location: Midwest USA
Device: Kindle Paperwhite(10th)
|
New Version Released
Version 2.15.0 - 2022-09-13 - Fix remove/up/down rows when lower selected first. - Update Translations |
01-01-2023, 08:44 PM | #460 |
Addict
Posts: 238
Karma: 100000
Join Date: Oct 2012
Device: Calibre
|
Is there a way to use this plugin from the command-line, without having to import the EPUBs into Calibre?
|
01-01-2023, 09:30 PM | #461 | |
Plugin Developer
Posts: 6,526
Karma: 4277329
Join Date: Dec 2011
Location: Midwest USA
Device: Kindle Paperwhite(10th)
|
Quote:
|
|
02-15-2023, 04:14 AM | #462 |
Junior Member
Posts: 1
Karma: 10
Join Date: Feb 2023
Device: Samsung Galaxy
|
What to do with merged files
I recently found your plug-in, and it works great. My question is : can I remove the original files the anthology makes up from Calibre to free up the space on my booklist ?
|
02-15-2023, 09:54 AM | #463 |
Plugin Developer
Posts: 6,526
Karma: 4277329
Join Date: Dec 2011
Location: Midwest USA
Device: Kindle Paperwhite(10th)
|
Yes.
The merged copy does not depend on the source epubs. In fact, if you have the EpubMerge config option "Keep UnMerge Metadata" checked (it is checked by default), you can even UnMerge the new epub to get the original epubs back again. |
03-11-2023, 05:12 AM | #464 |
Fanfiction Devourer
Posts: 47
Karma: 539564
Join Date: Nov 2012
Device: Android: Moon+ Reader Pro
|
Oh hey, It's you again Jimm~!
You make all the best plugins, you are just the best! On to my question. Is there a way to configure the plugin to have it rename the stylesheets and other merged files? I think it's a quirk of my android epub reader app (Moon+ Reader Pro) that it doesn't handle same-name files in different folders very well. It works fine if I manually edit them in calibre's editor to rename all the covers, stylesheets, and pagestyles so they aren't the same (sequential numbering or whatever). Otherwise it just keeps reusing the first instance. Just double-checking since I don't see an option that jumps out at me as being for this and it's not the largest of hardships to manually batch rename my occasional epubmerge. |
03-11-2023, 10:27 AM | #465 |
Plugin Developer
Posts: 6,526
Karma: 4277329
Join Date: Dec 2011
Location: Midwest USA
Device: Kindle Paperwhite(10th)
|
No.
Changing file names also requires finding and changing all the references to those files in other files and EpubMerge just isn't that smart. It's an issue that's come up before with Sigil. |
Tags |
calibre, combine books, epubmerge, make collection, merge epub, merge epubs |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[GUI Plugin] Open With | kiwidude | Plugins | 403 | 04-01-2024 08:39 AM |
[GUI Plugin] Quick Preferences | kiwidude | Plugins | 62 | 03-16-2024 11:47 PM |
[GUI Plugin] FanFictionDownLoader | JimmXinu | Plugins | 3985 | 05-08-2015 11:18 PM |
eBookCleaner | slobberchopz | Plugins | 9 | 02-23-2012 04:25 AM |
[GUI Plugin] Plugin Updater **Deprecated** | kiwidude | Plugins | 159 | 06-19-2011 12:27 PM |