View Single Post
Old 08-29-2015, 08:01 PM   #483
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,123
Karma: 92500001
Join Date: Nov 2011
Location: Charlottesville, VA
Device: Kindles
Quote:
Originally Posted by Montana Harper View Post
I love the new wait time feature! I have a question about it, though.

I'd like to be able to split the custom #ol_wait_weeks column into two, one for audiobook and one for ebooks, but because it's a custom column created by OverDrive Link, I can't figure out how to create two new custom columns and populate them from it. Would it be a lot of trouble for that feature/option to be added to the plugin?

Or maybe someone could help me with the custom column creation, since I'm not particularly skilled with Calibre's template language.

Thanks!
The next release of the plugin will support a tweak that allows the ol_wait_weeks column to be sorted or filtered in a variety of ways, but it will still only allow the creation of a single custom column. If that is not sufficient, you can create multiple custom columns with different subsets of the data, even with the current version of the plugin, but it is a bit complicated to set up. I described one approach in this post.

To set this up you need to copy the function definition from that post to the dialog you can find through Preferences -> Advanced -> Template Functions. Once the template function is set up you can create a new custom column using the function name. Instructions are shown in that dialog, but it is a bit complicated.

That function in that post will show only audiobooks. For non-audiobooks you would replace "'#' in f" with "'#' not in f" and pick a new name for the function, such as ol_wait_non_audio_only.

Once you set up the new columns to your liking you can hide the original ol_wait_weeks custom column by right-clicking the column heading and choosing "Hide column...".
jhowell is offline   Reply With Quote