02-21-2011, 05:03 PM | #1 |
Junior Member
Posts: 2
Karma: 10
Join Date: Feb 2011
Device: Stanza
|
importing PDF with author, title in filename
Hello,
I have got a problem with importing pdf books to calibre. Filename: Perry Rhodan 1100 - William Voltz - Der Frostrubin.pdf rex expresion: (?P<series>[Perry Rhodan]+) (?P<series_index>[0-9]*) - (?P<author>[^_-]+) - (?P<title>[^_-]+) Everything looks ok when I test it at the settings. Title: Der Frostrubin Author: William Volz series: Perry Rhodan Series indes: 1100 But when I start to import my books, it looks like: Title: Perry Rhodan 1100 - William Voltz - Der Frostrubin Author: NoMam ..... After some tests, I had the idea, that it could happen because of the .pdf, so I tested in the settings screen: Perry Rhodan 1100 - William Voltz - Der Frostrubin and the output of Calibre was: Author: unknown Title, series...: no Math I´m Using Windows 7 with Calibre 0.7.45, it looks like calibre doesn´t get the .pdf. How can I fix the rex expresion, that it will work or how could I solve my problem? If you have any questions, feel free to ask! But pleas keep your sentences easy, as you can see, I´m not a native english speaker! :-) greetings, Auti |
02-21-2011, 05:52 PM | #2 |
Member
Posts: 11
Karma: 10
Join Date: Feb 2011
Device: none
|
I have this syntax working on your example. (?P[^_0-9-]*)\s*(?P[0-9]*)\s*-\s*(?P[^_-]+)?\s*-\s*(?P[^_].+) ? Perry Rhodan 1100 - William Voltz - Der Frostrubin.pdf
|
Advert | |
|
02-21-2011, 06:01 PM | #3 |
Member
Posts: 11
Karma: 10
Join Date: Feb 2011
Device: none
|
I have your file name working with this RegEx
Perry Rhodan 1100 - William Voltz - Der Frostrubin.pdf (?P<series>[^_0-9-]*)\s*(?P<series_index>[0-9]*)\s*-\s*(?P<author>[^_-]+)?\s*-\s*(?P<title>[^_].+) ? see if it works for you. |
02-22-2011, 11:46 AM | #4 |
Junior Member
Posts: 2
Karma: 10
Join Date: Feb 2011
Device: Stanza
|
omg... I had to deaktivate "Read metadate from file contents rather than file name", now it works with both of our RegEx...
Thank you verry much for your fast help! greets, Auti |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Importing and maintaining title, author | AndrewKantor | Calibre | 19 | 08-25-2014 04:34 AM |
Metadata in Title/filename | mezme | Calibre | 0 | 08-18-2010 03:08 AM |
Content PDF: Homescreen shows Filename instead of Title (Metadata) | bear4hunter | Amazon Kindle | 1 | 08-02-2010 12:35 AM |
PDF title and author error when sending to device | SpyKiIIer | Calibre | 7 | 01-27-2010 10:11 PM |
Displaying The Title And Author On Kindle With a PDF | Nathan Campos | Amazon Kindle | 5 | 01-03-2010 05:47 PM |