|
|
#1 |
|
Junior Member
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 9
Karma: 9642
Join Date: Sep 2009
Device: iPad Min
|
Adding with Regex
I need to add a couple of thousand books to my library. The file names are structured like this:
Series-123 Title of Book (Author Name) 1989.txt I created the following regex to manage the import and it tests out perfectly. Code:
^(?P<series>.+)-(?P<series_index>\d{1,4}) (?P<title>.+)\((?P<author>.+)\) (?P<published>\d{4})
![]() Once the book imports everything is right except the title, which is simply the file name minus the extension. While I can fix these with a regex on search and replace, I would like to avoid the extra step. Am I missing something in the preferences? Any help would be much appreciated! Last edited by thepauler; 08-31-2014 at 02:45 PM. |
|
|
|
|
|
#2 |
|
Evangelist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 435
Karma: 572984
Join Date: Jan 2010
Location: Long Island
Device: Kobo Libra 2, Kindle 4, Nook Gl4, Nook STR, REB 1100, Ebookwise 1500,
|
Under Preferences=>Adding Books the very first check box is Read Metadata from file contents rather than file name. Make sure this is unchecked otherwise it uses the file name as the title since it didn't find any metadata in the file itself.
|
|
|
|
| Advert | |
|
|
|
|
#3 |
|
Junior Member
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 9
Karma: 9642
Join Date: Sep 2009
Device: iPad Min
|
That was it.
Thank you!! |
|
|
|
![]() |
| Thread Tools | Search this Thread |
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Need help with regex for adding ebooks | myusernameis | Calibre | 2 | 02-14-2014 08:01 AM |
| Need help with a regex | mobiuser | Workshop | 15 | 01-19-2014 06:57 PM |
| Adding books - regex help | tonyx3 | Library Management | 1 | 03-13-2013 09:21 AM |
| Help me with regex please. | eVrajka | Library Management | 5 | 08-15-2011 01:17 PM |
| A little help adding books and using regex. | Dragonator | Calibre | 7 | 12-17-2010 07:57 PM |