![]() |
#1 |
Junior Member
![]() Posts: 3
Karma: 10
Join Date: Oct 2011
Device: none
|
![]()
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. |
![]() |
![]() |
![]() |
#2 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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.
|
![]() |
![]() |
![]() |
#3 | |
Junior Member
![]() Posts: 3
Karma: 10
Join Date: Oct 2011
Device: none
|
Quote:
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. |
|
![]() |
![]() |
![]() |
#4 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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>.*?) |
![]() |
![]() |
![]() |
#5 |
Junior Member
![]() Posts: 3
Karma: 10
Join Date: Oct 2011
Device: none
|
|
![]() |
![]() |
![]() |
|
![]() |
||||
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 |