mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-08 10:44:09 -04:00
Fix extra 'language' entry in metadata download config dialog
This commit is contained in:
parent
d61e0b5be8
commit
d844b5cb6a
@ -20,7 +20,7 @@ class Ozon(Source):
|
||||
capabilities = frozenset(['identify', 'cover'])
|
||||
|
||||
touched_fields = frozenset(['title', 'authors', 'identifier:isbn', 'identifier:ozon',
|
||||
'publisher', 'pubdate', 'comments', 'series', 'rating', 'language'])
|
||||
'publisher', 'pubdate', 'comments', 'series', 'rating', 'languages'])
|
||||
# Test purpose only, test function does not like when sometimes some filed are empty
|
||||
# touched_fields = frozenset(['title', 'authors', 'identifier:isbn', 'identifier:ozon',
|
||||
# 'publisher', 'pubdate', 'comments'])
|
||||
|
@ -162,7 +162,9 @@ class FieldsModel(QAbstractListModel): # {{{
|
||||
'languages': _('Languages'),
|
||||
}
|
||||
self.overrides = {}
|
||||
self.exclude = frozenset(['series_index'])
|
||||
self.exclude = frozenset([
|
||||
'series_index', 'language' # some plugins use language instead of languages
|
||||
])
|
||||
|
||||
def rowCount(self, parent=None):
|
||||
return len(self.fields)
|
||||
|
Loading…
x
Reference in New Issue
Block a user