View Single Post
Old 09-20-2014, 08:47 AM   #591
chaley
Grand Sorcerer
chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.
 
Posts: 12,475
Karma: 8025702
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
Quote:
Originally Posted by DMee View Post
I just tried running the code

I copied and pasted to a file I called complex-series.txt and saved in my user directory

I then ran

calibre-debug -e complex-series.txt

It did nothing for a few minutes and then I was back at command line

I opened calibre but couldn't spot anything new anywhere

i) am I doing it right?
ii) is that the full code you posted
iii) where should data end up?
You must change two things in the script:
1) change line 12 so that 'path-to-your-library' is the real path to your library.
2) change '#text' on line 34 to a lookup name of a text-type (not tags) custom column in your library.

After you run the script you should see the number format in the text column for books with a series, similar to the screen capture below. You would use that format in the template when you generate series strings.
Attached Thumbnails
Click image for larger version

Name:	Capture.PNG
Views:	432
Size:	11.0 KB
ID:	128605  
chaley is offline   Reply With Quote