![]() |
#1771 | |
Evangelist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 479
Karma: 41524
Join Date: Sep 2011
Device: Kobo Libra 2 & Clara BW
|
Quote:
![]() |
|
![]() |
![]() |
![]() |
#1772 |
Bibliophagist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 47,616
Karma: 172313954
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
I think I've complained about the before but when Remove non-DC metadata elements is checked, the DC Modified item is removed. It is the only mandatory for ePub3 property that does not start with <dc: but it's an annoyance having to restore it.
Code:
<meta property="dcterms:modified">2025-03-23T18:40:12Z</meta> |
![]() |
![]() |
![]() |
#1773 | |
Calibre Plugins Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,733
Karma: 2197770
Join Date: Oct 2010
Location: Australia
Device: Kindle Oasis
|
Quote:
Obviously ePub3 didn't exist back in 2011 when this plugin feature was written. To change this will require not just a change in this plugin, but also a change to the Quality Check plugin to make it skip this attribute. It shouldn't be a majorly difficult change (I hope), will put it on the list. |
|
![]() |
![]() |
![]() |
#1774 |
Calibre Plugins Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,733
Karma: 2197770
Join Date: Oct 2010
Location: Australia
Device: Kindle Oasis
|
Modify ePub v1.8.6
Release Notes
https://github.com/kiwidude68/calibr...fy_epub-v1.8.6 I still need to make the matching change to Quality Check later... |
![]() |
![]() |
![]() |
#1775 | |
Bibliophagist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 47,616
Karma: 172313954
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
Quote:
Thanks for the change! |
|
![]() |
![]() |
![]() |
#1776 |
Bibliophagist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 47,616
Karma: 172313954
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
Got around to doing more testing with the updated plugin and it spits out an error message when I attempt to modify more that one file at a time. My test was with 3 files and got the error message after clicking Yes to replace the versions in the library (the log file prior to clicking yes did not show any errors). Doing those 3 files one at a time did not generate the error message.
Code:
calibre, version 8.0.1 ERROR: Unhandled exception: <b>AttributeError</b>:'NoneType' object has no attribute 'update_last_modified' ... Traceback (most recent call last): File "calibre_plugins.modify_epub.dialogs", line 291, in do_book_check File "calibre_plugins.modify_epub.dialogs", line 310, in do_close AttributeError: 'NoneType' object has no attribute 'update_last_modified' |
![]() |
![]() |
![]() |
#1777 |
Calibre Plugins Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,733
Karma: 2197770
Join Date: Oct 2010
Location: Australia
Device: Kindle Oasis
|
@DNSB - that isn't something I have been able to replicate, nor does it look in any way related to the change I made. That error message looks like somehow the plugin dialog has been unable to find the current database object. TBH I haven't even seen the prompt for so long (I have it turned off in configuration options for that plugin), but I selected 3 books, did an add/replace cover, and it all worked fine.
Is it only on specific Modify ePub options being ticked? In which case there must be more error messages or log somewhere, PM me the full log. |
![]() |
![]() |
![]() |
#1778 |
Bibliophagist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 47,616
Karma: 172313954
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
Getting rather weird. It only happened on my Intake library. So I created a new library copying the structure of the Intake library and copied the contents of my Intake library there. After the copy, I could happily Modify ePub the contents of Intake2 without getting the error message after clicking on yes. I then deleted the original Intake library, created a new one after deleting the contents of the Intake directory, copied everything back from the Intake2 library and no issues running Modify ePub.
When I was playing with my original Intake library after moving the contents to Intake2, I copied 5 files from my Main library and they came up with the same error message. So something in the library or it's structure caused the issue but, as the old sign I had above my desk at work said, We don't believe in miracles, we just depend on them. I've attached my Modify ePub configuratin screen and the calibre debug error logs. Once again, thanks for your help and feedback. |
![]() |
![]() |
![]() |
#1779 |
Junior Member
![]() Posts: 3
Karma: 10
Join Date: Mar 2010
Device: Boox Leaf
|
I had this error since upgrading to Calibre 8.12:
Failed to modify ePubs: Failed: Modify ePubs version (1, 8, 6) The error seems to come from: ImportError: cannot import name 'RECOVER_PARSER' from 'calibre.ebooks.oeb.parse_utils' (C:\Program Files\Calibre2\app\bin\python-lib.bypy.frozen\calibre\ebooks\oeb\parse_utils.pyc ) I tried both jointly and separately to replace a cover and update metadata. This occurs if I try a single book or a group. |
![]() |
![]() |
![]() |
#1780 | |
Junior Member
![]() Posts: 3
Karma: 10
Join Date: Mar 2010
Device: Boox Leaf
|
From another thread:
Quote:
|
|
![]() |
![]() |
![]() |
#1781 |
Belgian Pommes Frites
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 124
Karma: 35038
Join Date: Jan 2012
Device: Pocketbook Touch HD
|
Yes, on upgrading to 8.12 from 8.11.1, I now get the same error.
|
![]() |
![]() |
![]() |
#1782 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 80,415
Karma: 150231975
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
I've modified Modify ePub to work with calibre 8.12. I've upped the version to 1.8.7. This is a beta version. Please report any errors.
Last edited by JSWolf; Yesterday at 05:51 PM. |
![]() |
![]() |
![]() |
#1783 |
Bibliophagist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 47,616
Karma: 172313954
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
Please note the @JSWolf's modification to Modify Epub and Quality Check are iffy since they continue the use of lxml. A proper rewrite to use parse_html function is quite a bit more work.
|
![]() |
![]() |
![]() |
#1784 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 80,415
Karma: 150231975
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
My fixes are using the code that Kovid pasted. It gets the plugins working under 8.12. I have no idea if it's the best way to do it. At least they can be posted as working and then fixed the better way.
|
![]() |
![]() |
![]() |
#1785 | |
Bibliophagist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 47,616
Karma: 172313954
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
Quote:
Last edited by DNSB; Yesterday at 06:15 PM. |
|
![]() |
![]() |
![]() |
Tags |
modify epub |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
[GUI Plugin] Quality Check | kiwidude | Plugins | 1267 | Today 06:52 AM |
[GUI Plugin] Open With | kiwidude | Plugins | 404 | 02-21-2025 05:42 AM |
[GUI Plugin] Manage Series | kiwidude | Plugins | 167 | 07-28-2024 03:07 PM |
Modify ePub plugin dev thread | kiwidude | Development | 346 | 09-02-2013 05:14 PM |
[GUI Plugin] Plugin Updater **Deprecated** | kiwidude | Plugins | 159 | 06-19-2011 12:27 PM |