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 05-16-2011, 06:07 PM   #1
eirek
Junior Member
eirek began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Aug 2010
Device: Kindle 3
Import expression request

My files are named like this "1-The Diamond Throne - David Eddings"

I need calibre to import them as series number-title - author

Does anyone have an expression for this? I tried using expression generators and couldn't make it work


Thanks so much!!
eirek is offline   Reply With Quote
Old 05-16-2011, 06:10 PM   #2
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 31,003
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Quote:
Originally Posted by eirek View Post
My files are named like this "1-The Diamond Throne - David Eddings"

I need calibre to import them as series number-title - author

Does anyone have an expression for this? I tried using expression generators and couldn't make it work


Thanks so much!!
I think the problem is the Missing Series NAME.
An index_number can't exist without a series_name
theducks is online now   Reply With Quote
Advert
Old 05-16-2011, 06:12 PM   #3
eirek
Junior Member
eirek began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Aug 2010
Device: Kindle 3
Can I just ignore the series number then and just import the title and author?
eirek is offline   Reply With Quote
Old 05-17-2011, 02:58 AM   #4
clonetom
Junior Member
clonetom began at the beginning.
 
clonetom's Avatar
 
Posts: 3
Karma: 10
Join Date: May 2011
Device: HP TM2
I am adding files from another manager, which renames files to "title"-"author"-"index number"-"ISBN" (with "-" as delimiter).

(?P<title>.+)-(?P<author>[^_]+)-(?P<dummy>.+)-(?P<isbn>.+)

Since Calibre has no use for "index number", I just use a 'dummy' instead, so that I can add "title", "author" and "ISBN"... works fine for so far!

So in your case you could try:

(?P<dummy>.+)-(?P<title>.+)-(?P<author>[^_]+)

Good luck and please share if it works!

tom
clonetom is offline   Reply With Quote
Old 05-17-2011, 03:46 AM   #5
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
Quote:
Originally Posted by clonetom View Post
(?P<title>.+)-(?P<author>[^_]+)-(?P<dummy>.+)-(?P<isbn>.+)
You don't need to use a "dummy" field, you can just not put things you don't want in fields. This should work equally well:
Code:
(?P<title>.+)-(?P<author>[^_]+)-\d+-(?P<isbn>.+)
Manichean is offline   Reply With Quote
Advert
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Calibre book adding: Regular expression request... Spiffy Calibre 34 01-19-2016 01:03 PM
REQUEST: Choosing duplicates to import Giuseppe Chillem Calibre 1 01-08-2011 12:34 PM
Need an import expression to use sub-foldername as series santiagodraco Calibre 3 06-10-2010 07:54 AM
Feature Request at the import-function ralphffm44 Calibre 4 04-02-2010 01:14 PM
What is the default regular expression for filename import? palex481 Calibre 2 03-22-2009 06:11 PM


All times are GMT -4. The time now is 04:00 PM.


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