View Single Post
Old 01-01-2016, 09:43 AM   #521
jhowell
Grand Sorcerer
jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.
 
jhowell's Avatar
 
Posts: 7,118
Karma: 92190133
Join Date: Nov 2011
Location: Charlottesville, VA
Device: Kindles
Quote:
Originally Posted by Montana Harper View Post
How difficult would it be to have more than one search profile, then?
That feature is already available in the plugin as of version 1.35.0.

Quote:
Groups of libraries can be configured for searching by setting the plugin tweak overdrive_link_library_groups. See the help section on Configuring Tweaks for more information.
Quote:
Configuring Tweaks

The plugin has a number of configuration settings for advanced users that are managed by setting "tweaks" for the plugin. From the main Calibre screen select: Preferences -> Tweaks -> Plugin tweaks. This will open a dialog where tweaks may be set by adding Python variable assignments. The supported tweaks are:

...

overdrive_link_library_groups = dict mapping group names to lists of library names
This establishes named groups of libraries that can be used to perform searches. It can be used to avoid having to reconfigure the plugin to enable and disable libraries for searching when only a subset of libraries is desired. Once this tweak is set a new plugin menu item, Search for books at library group, will appear that lists the groups established by this tweak. Selecting a group will start a search using only the libraries contained in the group. For example, using: {'Favorite Libraries': ['lib1', 'lib2', 'lib3'], 'lib4 with discovery': ['lib4', '+discovery']} will establish two groups of libraries that can be used for searches. Library names are case sensitive and must match those in the configuration exactly. If a group contains a library named +discovery then the search will be done for books by selected authors, otherwise the search will be done for only the selected books.

Last edited by jhowell; 01-01-2016 at 07:16 PM. Reason: Add details
jhowell is offline   Reply With Quote