View Single Post
Old 09-06-2009, 06:31 AM   #1
plunderydoo
Enthusiast
plunderydoo has a complete set of Star Wars action figures.plunderydoo has a complete set of Star Wars action figures.plunderydoo has a complete set of Star Wars action figures.plunderydoo has a complete set of Star Wars action figures.plunderydoo has a complete set of Star Wars action figures.
 
Posts: 38
Karma: 412
Join Date: Sep 2009
Device: WinMobile, Hanvon N516 w. OpenInkPot, eLyricon EBX-500, Iphone 3GS
Little Help with Metadata from Filename needed

Hi everybody,

i want to import some series of ebooks.
So far have a almost working Regex:
(?P<series>[^_]+) - book (?P<series_index>[0-9]*) - (?P<author>[^_-]+) - (?P<title>.[^_]+)

the Filename would be: Seriesname - booknr 0000 - bookauthor - booktitle

The thing which is not working properly ist the number.
Instead of importing four digits to Series index I always end up with two digits divided by a dot.

I.e. instead of 0007 it imports 7.0

I have found this: {series_index:0>3s} in another thread, but i always get errors when trying using it.

Hope thats somebody got an Idea, because for my opinion calibre is the most usefull ebooktool around and i would really like to use it.

Thanks a lot

PL
plunderydoo is offline   Reply With Quote