mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-08 18:13:04 +02:00
Content server: Show the name of the virtual library at the top when browsing books in a virtual library. Fixes #1251278 [Name of Virtual Lib. in headline](https://bugs.launchpad.net/calibre/+bug/1251278)
This commit is contained in:
parent
91a42ff6cf
commit
974dda861b
1 changed files with 1 additions and 0 deletions
|
|
@ -675,6 +675,7 @@ def browse_matches(self, category=None, cid=None, list_sort=None):
|
|||
which = unhexlify(cid).decode('utf-8')
|
||||
vls = self.db.prefs.get('virtual_libraries', {})
|
||||
ids = self.search_cache(vls[which])
|
||||
category_name = _('virtual library: ') + which
|
||||
if not ids:
|
||||
msg = _('The virtual library <b>%s</b> has no books.') % prepare_string_for_xml(which)
|
||||
if self.search_restriction:
|
||||
|
|
|
|||
Loading…
Reference in a new issue