View Single Post
Old 05-11-2009, 11:51 AM   #119
Justy
Fanatic
Justy has much to be proud ofJusty has much to be proud ofJusty has much to be proud ofJusty has much to be proud ofJusty has much to be proud ofJusty has much to be proud ofJusty has much to be proud ofJusty has much to be proud ofJusty has much to be proud ofJusty has much to be proud ofJusty has much to be proud of
 
Justy's Avatar
 
Posts: 547
Karma: 27509
Join Date: Dec 2007
Location: Greater Vancouver Area, BC, Canada
Device: Nexus 7, Sony Xperia z3 tablet, Kobo Glo, Boyue T63
I recently installed Calibre and it looks quite useful. I have over 800 eBooks mostly in Mobipocket format. As expected several hundred of these did not have metadata which was picked up by Calibre. I would like to make use of the "metadata from filename" option but I have my eBooks named in 2 different ways.

NotSeries: Genre_Author_Title
Series: Genre_Author_SeriesName#_Title

for NotSeries this works: (?P<tags>.+)_(?P<author>[^_]+)_(?P<title>.+)

I'm not sure how to add in the series information so that it will continue to work for both title types. Any suggestions are welcome!
Justy is offline