Metadata from file name question
So I have a set of books and their names vary from stuff like "Farmer, Philip Jose - Riverworld 1 - To Your Scattered Bodies Go (.html.jpg v1.0)"
to
"Forsyth, Kate - (Witches of Eileanan 2) - Pool of Two Moons (.rtf v0.9)"
I want to add this stuff in bulk. I've currently got this setup
(?P<author>.+) - (?P<series>.+) -(?P<title>[^_]+)
and it does a decent job for both but gives a title like " To Your Scattered Bodies Go (.html.jpg v1" for the first and second examples. For the second example it gives a series like "(Witches of Eileanan 2)". Is there a way to avoid the "(.html.jpg v1" being added to the end of every title, and is there also a way to avoid the parenthesis being added to the series like in the second example?
Also, can I have it automatch the series index as well? I can't seem to ever build a expression that returns anything meaningful using the "series_index" variable
Much appreciate the help.
|