mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
0.8.67+ (KG reverts usb lib), GwR catalog wip, Apple driver changes
This commit is contained in:
parent
2fa201501f
commit
1cd7b53bb2
@ -1645,9 +1645,9 @@ class ITUNES(DriverBase):
|
||||
asl = [i.author_sort for i in booklist]
|
||||
las = max(asl, key=len)
|
||||
if isosx:
|
||||
fs = '{!s}{:<%d} {:<%d} {:<%d} {:<10} {!s}' % (' ' * indent, len(lt),
|
||||
fs = '{!s}{:<%d} {:<%d} {:<%d} {:<10} {!s}' % (len(lt),
|
||||
len(la), len(las))
|
||||
logger.info(fs.format(book.title, book.author, book.author_sort,
|
||||
logger().info(fs.format(book.title, book.author, book.author_sort,
|
||||
str(book.library_id)[-9:], book.uuid))
|
||||
#logger().info("%s%-40.40s %-30.30s %-10.10s %s" %
|
||||
# (' '*indent,book.title, book.author, str(book.library_id)[-9:], book.uuid))
|
||||
|
@ -172,7 +172,10 @@ class PluginWidget(QWidget,Ui_Form):
|
||||
if hit:
|
||||
excluded_tags.append(hit.string)
|
||||
if excluded_tags:
|
||||
results = ', '.join(sorted(excluded_tags))
|
||||
if set(excluded_tags) == set(self.all_tags):
|
||||
results = _("All genres will be excluded")
|
||||
else:
|
||||
results = ', '.join(sorted(excluded_tags))
|
||||
finally:
|
||||
if self.DEBUG:
|
||||
print(results)
|
||||
|
@ -883,7 +883,7 @@ class CatalogBuilder(object):
|
||||
|
||||
self.update_progress_full_step(_("Sorting database"))
|
||||
|
||||
# First pass: Sort by author, test for author_sort mismatches
|
||||
# Test for author_sort mismatches
|
||||
self.books_by_author = sorted(list(self.books_by_title), key=self._kf_books_by_author_sorter_author)
|
||||
|
||||
authors = [(record['author'], record['author_sort']) for record in self.books_by_author]
|
||||
|
Loading…
x
Reference in New Issue
Block a user