invalide identifier with colon in search/replace
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
calibre |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
When your try to modify all identifiers (*) with the template function, if the value of an output identifier contains a colon (like url:http://
Look at the attached image for example. The preview works, but the fields are not modified.
I discovered the problem when I created a plugin (Mass Search/Replace) that uses the same code as MetadataBulkDia
Apparently, the Search/Replace in the main interface does not raise the error.
if dst_id_type and dst_id_type != '*':
v = ''.join(val)
ids = mi.get(dest)
ids[
val = ids
else:
try:
val = dict([(
except:
raise Exception(
EDIT: FIX?
val = dict([(t.split(':', 1)) for t in val])
Fixed in branch master. The fix will be in the next release. calibre is usually released every alternate Friday.
status fixreleased