mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04: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
@ -675,6 +675,7 @@ class BrowseServer(object):
|
|||||||
which = unhexlify(cid).decode('utf-8')
|
which = unhexlify(cid).decode('utf-8')
|
||||||
vls = self.db.prefs.get('virtual_libraries', {})
|
vls = self.db.prefs.get('virtual_libraries', {})
|
||||||
ids = self.search_cache(vls[which])
|
ids = self.search_cache(vls[which])
|
||||||
|
category_name = _('virtual library: ') + which
|
||||||
if not ids:
|
if not ids:
|
||||||
msg = _('The virtual library <b>%s</b> has no books.') % prepare_string_for_xml(which)
|
msg = _('The virtual library <b>%s</b> has no books.') % prepare_string_for_xml(which)
|
||||||
if self.search_restriction:
|
if self.search_restriction:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user