View Single Post
Old 07-18-2011, 07:51 PM   #1
wygit
Enthusiast
wygit doesn't litterwygit doesn't litter
 
wygit's Avatar
 
Posts: 33
Karma: 112
Join Date: Jul 2009
Device: Sony PRS-505
Problem with "Add Books" regex

Having a problem and would appreciate suggestions...

I've been using this in the regex field for a while, and it's been doing ok...

(?P<author>[a-zA-Z&' \.]+?) - \[?((?P<series>[a-zA-Z' ]+) (?P<series_index>[0-9\.]+)\]? - )?(?P<title>[a-zA-Z,'\.\- ]+).*

If I add "Kelly McCullough - Ravirn 03 - Codespell.epub"
it correctly parses to
author, Kelly McCullough
series, Ravirn 03
title, Codespell

BUT... if I add the file:
"Piers Anthony - Xanth 01 - Spell for Chameleon.epub"
it imports as
author, Piers Anthony
title, Xanth 01 - Spell for Chameleon

I'm having the same problem with the rest of the series, which made me guess at a metadata problem, so I checked, and yes,
this is also how the metadata is in the file, but after unchecking "use metadata" in the "Add Books" setup, it's still not working.

I'm wondering if it's still using the metadata even though it's unchecked

One more thing... It works correctly in the test field in preferences, just not when dragging the files in.

Any suggestions?
wygit is offline   Reply With Quote