Skip to content

Commit

Permalink
fix columns list not the same as Calibre
Browse files Browse the repository at this point in the history
  • Loading branch information
un-pogaz committed May 31, 2023
1 parent da074b3 commit 3bb88c8
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
7 changes: 1 addition & 6 deletions SearchReplaceCalibre.py
Original file line number Diff line number Diff line change
Expand Up @@ -446,18 +446,13 @@ def prepare_search_and_replace(self):
if (f in ['author_sort'] or
(fm[f]['datatype'] in ['text', 'series', 'enumeration', 'comments', 'rating'] and
fm[f].get('search_terms', None) and
f not in ['formats', 'ondevice', 'series_sort']) or
f not in ['formats', 'ondevice', 'series_sort', 'in_tag_browser']) or
(fm[f]['datatype'] in ['int', 'float', 'bool', 'datetime'] and
f not in ['id', 'timestamp'])):
self.all_fields.append(f)
self.writable_fields.append(f)
if fm[f]['datatype'] == 'composite':
self.all_fields.append(f)

##un_pogaz exclude unsupported cover
self.all_fields.remove('cover')
self.writable_fields.remove('cover')

self.all_fields.sort()
self.all_fields.insert(1, TEMPLATE_FIELD)
self.writable_fields.sort()
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, 2)
version = (1, 7, 3)
minimum_calibre_version = (4, 0, 0)

#: This field defines the GUI plugin class that contains all the code
Expand Down
6 changes: 6 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
### version 1.7.3
fix columns list not the same as Calibre

### version 1.7.2
fix columns list not the same as Calibre

### version 1.7.2
fix active statue of Shared Search/Replace operation not conserved (always active)

Expand Down

0 comments on commit 3bb88c8

Please sign in to comment.