I am new to this type of,,, programming?... for lack of a better term atm,,
I was pointed to this thread to help me with a similar issue,
Comparing series and author to find some duplicates I inadvertently created by copying author to series on a lot of books,,,
I have been working to use the techniques in this thread to create a custom column that indicates this,, but I seem to be lacking,,
I am trying the method using template functions, with this information
Function: series_Sort
Arg count: 1
Program code:
def evaluate(self, formatter, kwargs, mi, locals, names):
from calibre.ebooks.metadata import series_sort_string, author_series_sort
return series_sort_string(author_series_sort(names))
The custom column is {test:series_sort()}
and I get the error
Exception file"<String>",line 5, in evaluate:importError: cannot import name series_sort_string
Now,, I basically understand when I copied over from the example above and just subbed in series and author I messed it up,,
Can someone help me fix this, or point me to where I can find the correct arguments/syntax,,
This thread when it starts assumes a level of knowledge within the template functions/syntax/arguments,, that I don't currently have,, I will work on this but in the mean time I will just bug you all :P
Thanks,
Collin
|