Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Library Management

Notices

Reply
 
Thread Tools Search this Thread
Old 10-02-2011, 01:55 AM   #1
daishan9
Junior Member
daishan9 began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Oct 2011
Device: none
Question Need Help - Filenames to Calibre for a Series

I can't seem to grasp this one. I have 132 Star Wars books. They are currently organized by file names in chronological order....

001 Star Wars Crosscurrent
002 Star Wars Lost Tribe of the Sith 01 Precipice

When I import them into Calibre, just the title field is filled in as I have it set to read metadata from the file names.

How do I change the file name so Calibre will also populate the Series field via the file name?

If I can get a clean title, and lets say a Series of "Star Wars [1]", then my import will automatically be in chronological order based on the Series field....and I can mass download covers and real metadata without the Series field being affected.

Therefore easily giving me full metadata for all the books and the ability to organize them via chronological order.

Hopefully that makes sense and thanks in advance for taking the time to read and try and help.
daishan9 is offline   Reply With Quote
Old 10-02-2011, 09:56 AM   #2
Manichean
Wizard
Manichean is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Manichean is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Manichean is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Manichean is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Manichean is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Manichean is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Manichean is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Manichean is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Manichean is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Manichean is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Manichean is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.
 
Manichean's Avatar
 
Posts: 3,130
Karma: 91256
Join Date: Feb 2008
Location: Germany
Device: Cybook Gen3
You'll need to create a regular expression to match the titles to metadata fields. There's a tutorial available should you need it, specifically, you'll need to create named backreferences to the metadata fields. The supported field names are available as tooltips on the test fields in the preferences->adding books dialog.
Manichean is offline   Reply With Quote
Advert
Old 10-02-2011, 11:41 AM   #3
daishan9
Junior Member
daishan9 began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Oct 2011
Device: none
Quote:
Originally Posted by Manichean View Post
....you'll need to create named backreferences to the metadata fields. The supported field names are available as tooltips on the test fields in the preferences->adding books dialog.
I took a look at the tutorial and the string values in the tooltips popups, but I think I missed something somewhere as what I did is not working in the Test area of Preferences > Adding Books.

I'm using:
(?P<series_index>) - (?P<series>) - (?P<title>)

to parse out this example file:
001 - Star Wars - Title.epub

When I click Test, everything gets dumped into the Title field.

Hell, when I leave the field as just (?P<series_index>) and the file name 001.epub, the Title field is still the only one used.
daishan9 is offline   Reply With Quote
Old 10-02-2011, 02:19 PM   #4
Manichean
Wizard
Manichean is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Manichean is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Manichean is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Manichean is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Manichean is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Manichean is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Manichean is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Manichean is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Manichean is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Manichean is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Manichean is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.
 
Manichean's Avatar
 
Posts: 3,130
Karma: 91256
Join Date: Feb 2008
Location: Germany
Device: Cybook Gen3
That's because the named groups are empty. You'll need to actually fit an expression in there describing what you want to match. Try
Code:
(?P<series_index>\d+) - (?P<series>.*?) - (?P<title>.*?)
or something similar.
Manichean is offline   Reply With Quote
Old 10-03-2011, 03:30 PM   #5
daishan9
Junior Member
daishan9 began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Oct 2011
Device: none
Quote:
Originally Posted by Manichean View Post
That's because the named groups are empty. You'll need to actually fit an expression in there describing what you want to match. Try
Code:
(?P<series_index>\d+) - (?P<series>.*?) - (?P<title>.*?)
or something similar.
Thank you very much. This worked great!
daishan9 is offline   Reply With Quote
Advert
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Matching filenames on device to Calibre DB T.BugReporter Calibre 2 04-11-2011 11:33 AM
Different export filenames for series / non-series books? HarryT Calibre 3 08-18-2010 12:30 PM
Calibre: ebooks-filenames Pulp Calibre 14 06-05-2010 10:19 PM
calibre cut-off the filenames and foldernames jomaweb Calibre 2 01-30-2010 11:51 AM
Saving Filenames in Calibre Library Folder junkyardwillie Calibre 2 01-07-2010 07:51 PM


All times are GMT -4. The time now is 04:49 AM.


MobileRead.com is a privately owned, operated and funded community.