View Single Post
Old 04-03-2012, 11:14 PM   #3
louwin
Newbie Nerd
louwin ought to be getting tired of karma fortunes by now.louwin ought to be getting tired of karma fortunes by now.louwin ought to be getting tired of karma fortunes by now.louwin ought to be getting tired of karma fortunes by now.louwin ought to be getting tired of karma fortunes by now.louwin ought to be getting tired of karma fortunes by now.louwin ought to be getting tired of karma fortunes by now.louwin ought to be getting tired of karma fortunes by now.louwin ought to be getting tired of karma fortunes by now.louwin ought to be getting tired of karma fortunes by now.louwin ought to be getting tired of karma fortunes by now.
 
louwin's Avatar
 
Posts: 114
Karma: 1000354
Join Date: Feb 2012
Location: Perth, Western Australia
Device: iPad 3 64Gb Black
I'm curious too :?

Your regex has 4 parts (I think)

How will Calibre work out what part(s) (of the file name?) aren't there?

As I see it, series AND series number can be absent so how does Calibre know that parts 2 & 3 aren't there? Or part 3 only could be missing?

I suppose I can play around with a test library and a collection of various test books

I currently am happy with the stock standard -

(?P<title>.+) - (?P<author>[^_]+)

My current format, which I hope to process manually, doesn't have a separator between series and number:-

Series 1 - Title - A N Author.pdf
Series 2 - Title - A N Author.pdf
Series 3 - Title - A N Author.pdf etc

I currently change this to:-

Series 1, Title - A N Author.pdf
Series 2, Title - A N Author.pdf
Series 3, Title - A N Author.pdf etc

so series info is part of the title to manually process the series info later

So much to learn, so little time....
louwin is offline   Reply With Quote