08-03-2010, 06:59 PM | #16 | ||
Fanatic
Posts: 547
Karma: 27509
Join Date: Dec 2007
Location: Greater Vancouver Area, BC, Canada
Device: Nexus 7, Sony Xperia z3 tablet, Kobo Glo, Boyue T63
|
Quote:
Quote:
You guys are great! |
||
08-03-2010, 07:28 PM | #17 |
Wizard
Posts: 4,004
Karma: 177841
Join Date: Dec 2009
Device: WinMo: IPAQ; Android: HTC HD2, Archos 7o; Java:Gravity T
|
It works, but it shouldn't. There's something odd going on with the regex. When I get time, I'll take a look at it. In the meantime, I thought I'd post something that works for you to use.
|
Advert | |
|
04-17-2011, 10:48 PM | #18 | ||
Fanatic
Posts: 547
Karma: 27509
Join Date: Dec 2007
Location: Greater Vancouver Area, BC, Canada
Device: Nexus 7, Sony Xperia z3 tablet, Kobo Glo, Boyue T63
|
I feel kind of silly asking for help on this same issue again. I found more files to import and these 2 pieces of code which both worked at various times in the past are not giving the expected results now. I suspect that Calibre has changed a bit with all the wonderful updates Kovid & team have been adding for us.
Quote:
Quote:
|
||
04-18-2011, 08:56 AM | #19 | |
Wizard
Posts: 4,004
Karma: 177841
Join Date: Dec 2009
Device: WinMo: IPAQ; Android: HTC HD2, Archos 7o; Java:Gravity T
|
Quote:
Code:
([^_]+ )(?P<author>[A-Za-z]+) ((?P<series>[^_\d]+)(?P<series_index>\d+)? )?(?P<title>[^_]+)
|
|
04-18-2011, 01:57 PM | #20 |
Fanatic
Posts: 547
Karma: 27509
Join Date: Dec 2007
Location: Greater Vancouver Area, BC, Canada
Device: Nexus 7, Sony Xperia z3 tablet, Kobo Glo, Boyue T63
|
That code works perfectly this morning, I don`t know what was happening last night. Thank you for checking into this for me!
|
Advert | |
|
08-14-2011, 02:00 PM | #21 |
Member
Posts: 23
Karma: 10
Join Date: Aug 2011
Device: none
|
i´m losing my hair on the same issue.
i got it working - but exactly the way i want. My files are named: isbn_authors_title - 2nd title.pdf so for example: 123456789_Peter Pan and Bugs Bunny_The Science of things - And other stories.pdf so far i made it work for this scheme 123456789 - Peter Pan and Bugs Bunny - The Science of things- And other stories.pdf The code used for this is: (?P<isbn>.+) - (?P<author>[^_]+) - (?P<title>[^_]+) But i didn´t get the "_" to work. Also in some cases i got a year and an edition after the title (isbn_authors_title - 2nd title_year_edition.pdf) - but as these won´t be imported anyway (if i understood correctly). |
08-14-2011, 02:57 PM | #22 |
Wizard
Posts: 3,130
Karma: 91256
Join Date: Feb 2008
Location: Germany
Device: Cybook Gen3
|
What regexes did you try to get the underscores to work?
|
08-15-2011, 06:13 AM | #23 |
Member
Posts: 23
Karma: 10
Join Date: Aug 2011
Device: none
|
figured it out myself with the link of ilovejedd in this thread here: https://www.mobileread.com/forums/showthread.php?t=40993
thanks anyway |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
File names with "(" and ")" can cause screen freezes | greenapple | Ectaco jetBook | 5 | 02-04-2010 08:25 PM |
Get "Tag" metadata from file name | dosyoyas | Calibre | 2 | 01-13-2010 01:09 PM |
Fiction Writers as "Brand Names" | kilohertz53 | Lounge | 53 | 11-02-2007 05:00 PM |
Help! the "Make Sony Reader File" under "Options" is different | Dr. Drib | Sony Reader | 6 | 04-23-2007 02:56 AM |
New ".mobi" domain names are coming in May 2006 | Bob Russell | Lounge | 3 | 04-25-2006 05:38 PM |