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-28-2024, 04:37 PM   #16
d3m0sth3n3s
Member
d3m0sth3n3s shares his or her toysd3m0sth3n3s shares his or her toysd3m0sth3n3s shares his or her toysd3m0sth3n3s shares his or her toysd3m0sth3n3s shares his or her toysd3m0sth3n3s shares his or her toysd3m0sth3n3s shares his or her toysd3m0sth3n3s shares his or her toysd3m0sth3n3s shares his or her toysd3m0sth3n3s shares his or her toysd3m0sth3n3s shares his or her toys
 
d3m0sth3n3s's Avatar
 
Posts: 23
Karma: 5854
Join Date: Jun 2012
Location: Spain
Device: Kindle DX, Kindle Paperwhite, and Kindle Scribe
Quote:
Originally Posted by un_pogaz View Post
Voilà. Version updated, thank for the report (plus it's was really stupid mistake, damn it).
Thank you very much! This makes my (e-book) life easier!

I have kept testing your plugin and I’ve also found that I can’t make it work for automatic imports. Should it work if there are other plugins that also process metadata when importing a new book file? I already have GetFileName and Action Chains working together so I can get some of my custom columns filled when importing new books.
d3m0sth3n3s is offline   Reply With Quote
Old 07-29-2024, 03:56 AM   #17
un_pogaz
Chalut o/
un_pogaz ought to be getting tired of karma fortunes by now.un_pogaz ought to be getting tired of karma fortunes by now.un_pogaz ought to be getting tired of karma fortunes by now.un_pogaz ought to be getting tired of karma fortunes by now.un_pogaz ought to be getting tired of karma fortunes by now.un_pogaz ought to be getting tired of karma fortunes by now.un_pogaz ought to be getting tired of karma fortunes by now.un_pogaz ought to be getting tired of karma fortunes by now.un_pogaz ought to be getting tired of karma fortunes by now.un_pogaz ought to be getting tired of karma fortunes by now.un_pogaz ought to be getting tired of karma fortunes by now.
 
un_pogaz's Avatar
 
Posts: 486
Karma: 678910
Join Date: Dec 2017
Device: Kobo
Yes, it works with GetFileName or Action Chains. Beside, ePub Extended Metadata is called before them.

I also resolve the bug that make the plugin fail.

Last edited by un_pogaz; 07-29-2024 at 03:59 AM.
un_pogaz is offline   Reply With Quote
Old 07-29-2024, 06:54 PM   #18
d3m0sth3n3s
Member
d3m0sth3n3s shares his or her toysd3m0sth3n3s shares his or her toysd3m0sth3n3s shares his or her toysd3m0sth3n3s shares his or her toysd3m0sth3n3s shares his or her toysd3m0sth3n3s shares his or her toysd3m0sth3n3s shares his or her toysd3m0sth3n3s shares his or her toysd3m0sth3n3s shares his or her toysd3m0sth3n3s shares his or her toysd3m0sth3n3s shares his or her toys
 
d3m0sth3n3s's Avatar
 
Posts: 23
Karma: 5854
Join Date: Jun 2012
Location: Spain
Device: Kindle DX, Kindle Paperwhite, and Kindle Scribe
Quote:
Originally Posted by un_pogaz View Post
I also resolve the bug that make the plugin fail.
Thanx again! Now it works like a charm.
d3m0sth3n3s is offline   Reply With Quote
Old 08-09-2024, 08:56 PM   #19
bant
Junior Member
bant began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Aug 2024
Device: Hisense Touch, Boox Note Air
Hi, is it possible to read/write dc:creator as well, or is it only working for contributors?
bant is offline   Reply With Quote
Old 08-10-2024, 03:06 PM   #20
un_pogaz
Chalut o/
un_pogaz ought to be getting tired of karma fortunes by now.un_pogaz ought to be getting tired of karma fortunes by now.un_pogaz ought to be getting tired of karma fortunes by now.un_pogaz ought to be getting tired of karma fortunes by now.un_pogaz ought to be getting tired of karma fortunes by now.un_pogaz ought to be getting tired of karma fortunes by now.un_pogaz ought to be getting tired of karma fortunes by now.un_pogaz ought to be getting tired of karma fortunes by now.un_pogaz ought to be getting tired of karma fortunes by now.un_pogaz ought to be getting tired of karma fortunes by now.un_pogaz ought to be getting tired of karma fortunes by now.
 
un_pogaz's Avatar
 
Posts: 486
Karma: 678910
Join Date: Dec 2017
Device: Kobo
Only contributors. The Calibre behavior is that any dc:creator are imported as "Authors".
un_pogaz is offline   Reply With Quote
Old 08-10-2024, 05:48 PM   #21
bant
Junior Member
bant began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Aug 2024
Device: Hisense Touch, Boox Note Air
Quote:
Originally Posted by un_pogaz View Post
Only contributors. The Calibre behavior is that any dc:creator are imported as "Authors".
For me, <dc:creator id="creator2"> doesn't get shown in Authors tab in calibre (unless I edit the opf itself) which causes issues when sending books to device that does show creators as authors. But ty for letting me know; hoping to find a plugin that somehow fixes this.
bant is offline   Reply With Quote
Old 10-02-2025, 10:36 AM   #22
Dfaure
Enthusiast
Dfaure began at the beginning.
 
Posts: 34
Karma: 10
Join Date: Jan 2013
Device: Kobo Libra 2 & Aura HD, Cybook Muse
More fixes needed... :s

Just installed, defined a new custom column and tried to configure the plugin. Then:

Code:
calibre, version 8.12.0
ERROR: Unhandled exception: <b>TypeError</b>:Invalide Column metadata.

calibre 8.12 Portable embedded-python: True
Windows-10-10.0.26200-SP0 Windows ('64bit', 'WindowsPE')
('Windows', '10', '10.0.26200')
Python 3.11.13
Windows: ('10', '10.0.26200', 'SP0', 'Multiprocessor Free')
Interface language: None
EXE path: E:\Calibre Portable\Calibre\calibre.exe
Successfully initialized third party plugins: DeACSM (0, 0, 16) && DeDRM (10, 0, 9) && Action Chains (1, 20, 10) && Annotations (1, 17, 13) && Babelio_db (0, 8, 8) && Clean Metadata (0, 0, 7) && Comments Cleaner (1, 17, 1) && Count Pages (1, 13, 7) && Diaps Editing Toolbag (0, 5, 0) && Editor Chains (1, 1, 9) && Embed Comic Metadata (1, 6, 7) && EpubMerge (3, 2, 0) && EpubSplit (3, 12, 0) && Generate Cover (2, 3, 6) && KOReader Sync (0, 7, 2) && Kobo Metadata (1, 12, 0) && Kobo Utilities (2, 24, 3) && Manage Series (1, 5, 2) && Modify ePub (1, 8, 6) && Obok DeDRM (10, 0, 9) && Open With (1, 8, 4) && PersonnaLiseur (2, 1, 2) && Quality Check (1, 14, 2) && Reading List (1, 15, 6) && Reformat plugin (2, 4, 0) && ScrambleEbook (0, 6, 0) && Search The Internet (1, 11, 3) && SmartEject (2, 6, 0) && Sort_CSS (0, 1) && Typex (2, 0, 1) && Unplugged (1, 0, 0) && ePub Extended Metadata {Reader} (0, 11, 5) && ePub Extended Metadata {Writer} (0, 11, 5) && ePub Extended Metadata (0, 11, 5) && noosfere DB (1, 2, 0)
Traceback (most recent call last):
  File "calibre_plugins.epub_extended_metadata.action", line 86, in show_configuration
  File "calibre\customize\__init__.py", line 172, in do_user_config
  File "calibre_plugins.epub_extended_metadata.__init__", line 134, in config_widget
  File "calibre_plugins.epub_extended_metadata.config", line 239, in __init__
  File "calibre_plugins.epub_extended_metadata.config", line 413, in __init__
  File "calibre_plugins.epub_extended_metadata.config", line 424, in populate_table
  File "calibre_plugins.epub_extended_metadata.config", line 158, in get_names
  File "calibre_plugins.epub_extended_metadata.common_utils.columns", line 601, in get_names
  File "calibre_plugins.epub_extended_metadata.common_utils.columns", line 583, in _get_columns_type
  File "calibre_plugins.epub_extended_metadata.common_utils.columns", line 806, in get_columns_where
  File "calibre_plugins.epub_extended_metadata.common_utils.columns", line 800, in get_columns_from_dict
  File "calibre_plugins.epub_extended_metadata.common_utils.columns", line 800, in <listcomp>
  File "calibre_plugins.epub_extended_metadata.common_utils.columns", line 210, in __init__
TypeError: Invalide Column metadata.
Dfaure is offline   Reply With Quote
Old 10-02-2025, 01:49 PM   #23
un_pogaz
Chalut o/
un_pogaz ought to be getting tired of karma fortunes by now.un_pogaz ought to be getting tired of karma fortunes by now.un_pogaz ought to be getting tired of karma fortunes by now.un_pogaz ought to be getting tired of karma fortunes by now.un_pogaz ought to be getting tired of karma fortunes by now.un_pogaz ought to be getting tired of karma fortunes by now.un_pogaz ought to be getting tired of karma fortunes by now.un_pogaz ought to be getting tired of karma fortunes by now.un_pogaz ought to be getting tired of karma fortunes by now.un_pogaz ought to be getting tired of karma fortunes by now.un_pogaz ought to be getting tired of karma fortunes by now.
 
un_pogaz's Avatar
 
Posts: 486
Karma: 678910
Join Date: Dec 2017
Device: Kobo
Hmm, can you please restart calibre in debug mode, sub-menu of the preference button, reproduce the bug and then send here a copy of the text that will open after closing Calibre (or the all text file)
un_pogaz is offline   Reply With Quote
Old 10-03-2025, 06:30 PM   #24
Dfaure
Enthusiast
Dfaure began at the beginning.
 
Posts: 34
Karma: 10
Join Date: Jan 2013
Device: Kobo Libra 2 & Aura HD, Cybook Muse
PM Sent
Dfaure is offline   Reply With Quote
Old 10-04-2025, 10:36 AM   #25
un_pogaz
Chalut o/
un_pogaz ought to be getting tired of karma fortunes by now.un_pogaz ought to be getting tired of karma fortunes by now.un_pogaz ought to be getting tired of karma fortunes by now.un_pogaz ought to be getting tired of karma fortunes by now.un_pogaz ought to be getting tired of karma fortunes by now.un_pogaz ought to be getting tired of karma fortunes by now.un_pogaz ought to be getting tired of karma fortunes by now.un_pogaz ought to be getting tired of karma fortunes by now.un_pogaz ought to be getting tired of karma fortunes by now.un_pogaz ought to be getting tired of karma fortunes by now.un_pogaz ought to be getting tired of karma fortunes by now.
 
un_pogaz's Avatar
 
Posts: 486
Karma: 678910
Join Date: Dec 2017
Device: Kobo
Hmm, I see where the problem is coming from, your custom columns #mm_annotations are technically malformed, wich is very strange because it should never happen.
So, how was this column created? By another plugin? Or is it a very old library and herefore a very old columns? And how does it render in Calibre? Plain text or HTML?

In any case, I add here a test version with a fix, please can you confirm that it work now? thanks.

Last edited by un_pogaz; 10-09-2025 at 04:42 AM.
un_pogaz is offline   Reply With Quote
Old 10-09-2025, 04:41 AM   #26
un_pogaz
Chalut o/
un_pogaz ought to be getting tired of karma fortunes by now.un_pogaz ought to be getting tired of karma fortunes by now.un_pogaz ought to be getting tired of karma fortunes by now.un_pogaz ought to be getting tired of karma fortunes by now.un_pogaz ought to be getting tired of karma fortunes by now.un_pogaz ought to be getting tired of karma fortunes by now.un_pogaz ought to be getting tired of karma fortunes by now.un_pogaz ought to be getting tired of karma fortunes by now.un_pogaz ought to be getting tired of karma fortunes by now.un_pogaz ought to be getting tired of karma fortunes by now.un_pogaz ought to be getting tired of karma fortunes by now.
 
un_pogaz's Avatar
 
Posts: 486
Karma: 678910
Join Date: Dec 2017
Device: Kobo
Version with the fix released.
un_pogaz is offline   Reply With Quote
Old 10-09-2025, 08:20 AM   #27
Dfaure
Enthusiast
Dfaure began at the beginning.
 
Posts: 34
Karma: 10
Join Date: Jan 2013
Device: Kobo Libra 2 & Aura HD, Cybook Muse
Quote:
Originally Posted by un_pogaz View Post
your custom columns #mm_annotations are technically malformed, wich is very strange because it should never happen.
So, how was this column created? By another plugin? Or is it a very old library and herefore a very old columns? And how does it render in Calibre? Plain text or HTML?
Your assumptions were both right. The column come from the Annotations plugin that I'm using since a long time ago. The column renders as HTML.
Dfaure is offline   Reply With Quote
Old 10-09-2025, 10:28 AM   #28
un_pogaz
Chalut o/
un_pogaz ought to be getting tired of karma fortunes by now.un_pogaz ought to be getting tired of karma fortunes by now.un_pogaz ought to be getting tired of karma fortunes by now.un_pogaz ought to be getting tired of karma fortunes by now.un_pogaz ought to be getting tired of karma fortunes by now.un_pogaz ought to be getting tired of karma fortunes by now.un_pogaz ought to be getting tired of karma fortunes by now.un_pogaz ought to be getting tired of karma fortunes by now.un_pogaz ought to be getting tired of karma fortunes by now.un_pogaz ought to be getting tired of karma fortunes by now.un_pogaz ought to be getting tired of karma fortunes by now.
 
un_pogaz's Avatar
 
Posts: 486
Karma: 678910
Join Date: Dec 2017
Device: Kobo
Quote:
Originally Posted by Dfaure View Post
Your assumptions were both right. The column come from the Annotations plugin that I'm using since a long time ago. The column renders as HTML.
Damn it, my fix is assumption of plain text. Push a new one.
Thanks for the reply and the report, realy bad timing on my side, have a nice day.
un_pogaz is offline   Reply With Quote
Old 10-16-2025, 01:43 PM   #29
shikamer
Junior Member
shikamer began at the beginning.
 
Posts: 6
Karma: 10
Join Date: Oct 2025
Device: Kobo
Hi,

I downloaded a book from standard ebooks and then tried to import the translator metadata using this plugin, but it did not work.
After some investigation I found that the book contains multiple fields tagged to one entry,

For example:
<meta property="role" refines="#translator" scheme="marc:relators">ann</meta>
<meta property="role" refines="#translator" scheme="marc:relators">trl</meta>
<meta property="role" refines="#translator" scheme="marc:relators">wpr</meta>

But if I edit the opf file and make it like this:
<meta property="role" refines="#translator" scheme="marc:relators">trl</meta>

It works correctly. Can you help me in making this plugin work without editing the opf file for each book?
shikamer is offline   Reply With Quote
Old 10-17-2025, 05:02 AM   #30
un_pogaz
Chalut o/
un_pogaz ought to be getting tired of karma fortunes by now.un_pogaz ought to be getting tired of karma fortunes by now.un_pogaz ought to be getting tired of karma fortunes by now.un_pogaz ought to be getting tired of karma fortunes by now.un_pogaz ought to be getting tired of karma fortunes by now.un_pogaz ought to be getting tired of karma fortunes by now.un_pogaz ought to be getting tired of karma fortunes by now.un_pogaz ought to be getting tired of karma fortunes by now.un_pogaz ought to be getting tired of karma fortunes by now.un_pogaz ought to be getting tired of karma fortunes by now.un_pogaz ought to be getting tired of karma fortunes by now.
 
un_pogaz's Avatar
 
Posts: 486
Karma: 678910
Join Date: Dec 2017
Device: Kobo
Quote:
Originally Posted by shikamer View Post
It works correctly. Can you help me in making this plugin work without editing the opf file for each book?
You can't! The code of ePub Extended Metadata will make that only the last entry of "marc:relators" will be accepted.

When I create the plugin, my assumptions was that only one "marc:relators" can be accepted by ids of "dc:contributor", but I admit that now that I look at it, it was a pretty dump assumption.

Can you test the version attached to see if my fix work and that you can now import several "marc:relators" by "dc:contributor"?

Last edited by un_pogaz; 10-17-2025 at 02:30 PM.
un_pogaz is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[GUI Plugin] Zotero Metadata Importer DaltonST Plugins 295 03-22-2025 09:47 AM
[GUI Plugin] Embed Comic Metadata dickloraine Plugins 114 07-14-2024 09:21 AM
[GUI Plugin] Clean Metadata WS64 Plugins 28 01-06-2022 08:09 PM
Getting custom metadata field in GUI plugin SauliusP. Development 7 02-11-2012 01:31 AM


All times are GMT -4. The time now is 09:35 AM.


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