mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Remove tag_order kludge
This commit is contained in:
parent
676bf2b00a
commit
702a203013
@ -293,8 +293,7 @@ class DevicePlugin(Plugin):
|
|||||||
put the book. len(metadata) == len(files). Apart from the regular
|
put the book. len(metadata) == len(files). Apart from the regular
|
||||||
cover (path to cover), there may also be a thumbnail attribute, which should
|
cover (path to cover), there may also be a thumbnail attribute, which should
|
||||||
be used in preference. The thumbnail attribute is of the form
|
be used in preference. The thumbnail attribute is of the form
|
||||||
(width, height, cover_data as jpeg). In addition the MetaInformation
|
(width, height, cover_data as jpeg).
|
||||||
objects can have a tag_order attribute.
|
|
||||||
'''
|
'''
|
||||||
raise NotImplementedError()
|
raise NotImplementedError()
|
||||||
|
|
||||||
|
@ -258,7 +258,7 @@ class MetaInformation(object):
|
|||||||
'series', 'series_index', 'tags', 'rating', 'isbn', 'language',
|
'series', 'series_index', 'tags', 'rating', 'isbn', 'language',
|
||||||
'application_id', 'manifest', 'toc', 'spine', 'guide', 'cover',
|
'application_id', 'manifest', 'toc', 'spine', 'guide', 'cover',
|
||||||
'book_producer', 'timestamp', 'lccn', 'lcc', 'ddc', 'pubdate',
|
'book_producer', 'timestamp', 'lccn', 'lcc', 'ddc', 'pubdate',
|
||||||
'rights', 'publication_type', 'uuid', 'tag_order',
|
'rights', 'publication_type', 'uuid'
|
||||||
):
|
):
|
||||||
prints(x, getattr(self, x, 'None'))
|
prints(x, getattr(self, x, 'None'))
|
||||||
|
|
||||||
@ -278,7 +278,7 @@ class MetaInformation(object):
|
|||||||
'isbn', 'application_id', 'manifest', 'spine', 'toc',
|
'isbn', 'application_id', 'manifest', 'spine', 'toc',
|
||||||
'cover', 'language', 'guide', 'book_producer',
|
'cover', 'language', 'guide', 'book_producer',
|
||||||
'timestamp', 'lccn', 'lcc', 'ddc', 'pubdate', 'rights',
|
'timestamp', 'lccn', 'lcc', 'ddc', 'pubdate', 'rights',
|
||||||
'publication_type', 'uuid', 'tag_order'):
|
'publication_type', 'uuid'):
|
||||||
if hasattr(mi, attr):
|
if hasattr(mi, attr):
|
||||||
val = getattr(mi, attr)
|
val = getattr(mi, attr)
|
||||||
if val is not None:
|
if val is not None:
|
||||||
|
@ -343,9 +343,6 @@ class BooksModel(QAbstractTableModel): # {{{
|
|||||||
ans = []
|
ans = []
|
||||||
for id in ids:
|
for id in ids:
|
||||||
mi = self.db.get_metadata(id, index_is_id=True, get_cover=True)
|
mi = self.db.get_metadata(id, index_is_id=True, get_cover=True)
|
||||||
if mi.series is not None:
|
|
||||||
mi.tag_order = { mi.series: self.db.books_in_series_of(id,
|
|
||||||
index_is_id=True)}
|
|
||||||
ans.append(mi)
|
ans.append(mi)
|
||||||
return ans
|
return ans
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user