Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 11-25-2010, 07:05 AM   #1
alophind
Connoisseur
alophind began at the beginning.
 
Posts: 92
Karma: 10
Join Date: Aug 2007
Device: Palm Treo 650
How to bulk replace author - book name

Hi ,
In all the books I import , calibre put the author as book title and book title as author .

is there a way to bulk replace all ?
alophind is offline   Reply With Quote
Old 11-25-2010, 07:19 AM   #2
DoctorOhh
US Navy, Retired
DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.
 
DoctorOhh's Avatar
 
Posts: 9,864
Karma: 13806776
Join Date: Feb 2009
Location: North Carolina
Device: Icarus Illumina XL HD, Nexus 7
Quote:
Originally Posted by alophind View Post
Hi ,
In all the books I import , calibre put the author as book title and book title as author .
You can select all the books you wish to swap and choose Edit Metadata, check swap title and author box then click ok and all titles and authors for the books selected will be swapped.

Alternatively you can try to get the info correct to begin with. Calibre tries to get the info from metadata but if that fails it uses the regular expression under Preferences - Adding books to extract info from the file name.

Try this regex
Code:
^((?P<title>([^\-_0-9]+)(?=\s*-\s*)(?!\s*-\s*[0-9.]+)|\b))(\s*-\s*)?((?P<series>[^0-9\-]+)(\s*-\s*)?(?P<series_index>[0-9.]+)\s*-\s*)?(?P<author>[^\-_0-9]+)
or this one

Code:
^((?P<author>([^\-_0-9]+)(?=\s*-\s*)(?!\s*-\s*[0-9.]+)|\b))(\s*-\s*)?((?P<series>[^0-9\-]+)(\s*-\s*)?(?P<series_index>[0-9.]+)\s*-\s*)?(?P<title>[^\-_0-9]+)
After entering either put a file you would like to add including the epub or mobi extension in the test window and test it to see what is populated. I didn't write either but one or the other usually works for me.

Last edited by DoctorOhh; 11-25-2010 at 07:21 AM.
DoctorOhh is offline   Reply With Quote
Advert
Old 11-25-2010, 08:25 AM   #3
alophind
Connoisseur
alophind began at the beginning.
 
Posts: 92
Karma: 10
Join Date: Aug 2007
Device: Palm Treo 650
Quote:
Originally Posted by dwanthny View Post
You can select all the books you wish to swap and choose Edit Metadata, check swap title and author box then click ok and all titles and authors for the books selected will be swapped.

Alternatively you can try to get the info correct to begin with. Calibre tries to get the info from metadata but if that fails it uses the regular expression under Preferences - Adding books to extract info from the file name.

Try this regex
Code:
^((?P<title>([^\-_0-9]+)(?=\s*-\s*)(?!\s*-\s*[0-9.]+)|\b))(\s*-\s*)?((?P<series>[^0-9\-]+)(\s*-\s*)?(?P<series_index>[0-9.]+)\s*-\s*)?(?P<author>[^\-_0-9]+)
or this one

Code:
^((?P<author>([^\-_0-9]+)(?=\s*-\s*)(?!\s*-\s*[0-9.]+)|\b))(\s*-\s*)?((?P<series>[^0-9\-]+)(\s*-\s*)?(?P<series_index>[0-9.]+)\s*-\s*)?(?P<title>[^\-_0-9]+)
After entering either put a file you would like to add including the epub or mobi extension in the test window and test it to see what is populated. I didn't write either but one or the other usually works for me.
I needed the second one.
Thank you very much !!!
alophind is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Book Giveaways, Author Interviews & Book Reviews on Two Ends of the Pen dlmartin6 Self-Promotions by Authors and Publishers 19 11-08-2010 08:00 AM
Replace/Update Book Jacket DoctorOhh Calibre 0 05-20-2010 04:26 AM
Feature Request - replace "screensavers" with randomly selected book covers from libr nathander13 Calibre 3 12-02-2009 12:21 PM
How do I replace a book? emellaich Calibre 3 07-15-2009 12:54 PM
PDA soft and e-book vending machine - soon to replace the kiosk next door? Alexander Turcic News 6 07-03-2005 01:27 PM


All times are GMT -4. The time now is 07:59 PM.


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