Skip to content

Commit

Permalink
Fix NotImplementedError for get_proxy_metadata()
Browse files Browse the repository at this point in the history
  • Loading branch information
un-pogaz committed Oct 7, 2023
1 parent 8cf6596 commit 49864c2
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
6 changes: 3 additions & 3 deletions SearchReplaceCalibre.py
Original file line number Diff line number Diff line change
Expand Up @@ -972,7 +972,7 @@ def do_search_replace(self, book_id):
dest = source

dfm = self.db.field_metadata[dest]
mi = self.db.new_api.get_proxy_metadata(book_id)
mi = self.db.new_api.get_metadata(book_id)

#edit the metadata object with the stored edited field
if dest in self.set_field_calls:
Expand Down Expand Up @@ -1030,7 +1030,7 @@ def do_search_replace(self, book_id):
# }}}

def hasValue(self, v):
if v == None: return False
if v is None: return False
elif v is True or v is False: return True
elif v is int() or v is float(): return True
else:
Expand Down Expand Up @@ -1233,7 +1233,7 @@ def do_it(self):
show=True)
return False
self.changed = bool(self.ids)

self.set_field_calls = defaultdict(dict)

if do_sr:
Expand Down
2 changes: 1 addition & 1 deletion __init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ class ActionMassSearchReplace(InterfaceActionBase):
description = _('Easily apply a list of multiple saved Find and Replace operations to your books metadata')
supported_platforms = ['windows', 'osx', 'linux']
author = 'un_pogaz'
version = (1, 7, 4)
version = (1, 7, 5)
minimum_calibre_version = (4, 0, 0)

#: This field defines the GUI plugin class that contains all the code
Expand Down
5 changes: 5 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# Changelog - Mass Search/Replace

## [1.7.5] - 2023/10/07

### Bug fixes
- Fix NotImplementedError: set() cannot be used in this context. ProxyMetadata is read only

## [1.7.4] - 2023/09/31

### Bug fixes
Expand Down

0 comments on commit 49864c2

Please sign in to comment.