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:
Kovid Goyal 2013-11-15 08:34:38 +05:30
parent 91a42ff6cf
commit 974dda861b

View File

@ -675,6 +675,7 @@ class BrowseServer(object):
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: