I am still missing something.
I try to pull out the OPF structure using:
Code:
calibredb show_metadata --as-opf 1127 >zzzzz.txt
and immediately typing
Code:
calibredb set_metadata 1127 zzzzz.txt
produces this error:
Code:
Python function terminated unexpectedly
'charmap' codec can't encode characters in position 280-283: character maps to
<undefined> (Error Code: 1)
Traceback (most recent call last):
File "site.py", line 103, in main
File "site.py", line 85, in run_entry_point
File "site-packages\calibre\library\cli.py", line 1183, in main
File "site-packages\calibre\library\cli.py", line 483, in command_set_metadata
File "site-packages\calibre\library\cli.py", line 459, in do_set_metadata
File "site-packages\calibre\library\cli.py", line 429, in do_show_metadata
File "encodings\cp1252.py", line 12, in encode
UnicodeEncodeError: 'charmap' codec can't encode characters in position 280-283:
character maps to <undefined>
What's the catch ? I attached the xxxxx.txt file and the original metadata.opf from Calibre DB.