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-31-2016, 11:51 AM   #1
kunkel321
Enthusiast
kunkel321 began at the beginning.
 
Posts: 45
Karma: 10
Join Date: Apr 2016
Location: Near Seattle
Device: Amazon Fire 10
Rename existing books, using template?

I Have lots of books in my Calibre library that are named such that the metadata downloader doesn't recognize them. Such as:
"Jim, Jose, Sandy & George Great book of Stuff, Happy Publishing 2011.ISBN.2D4D5H7"
They don't all follow this logic of <name>&<name><title> etc, but many of them do follow patterns.

I see several different patters that show up over and over, so I'd like to set up some different templates that could be applied to different books. (Not while adding them, but changing a book that is already part of the library.) It would be nice if I could use the Edit Metadata dialog to 'parse' a name with one of the templates. Even better if I could visually select a group of books that all had a similar pattern in their name, and bulk parse them...

Does that make sense? Is something like this possible? Should I submit this as a feature request?
kunkel321 is offline   Reply With Quote
Old 05-31-2016, 12:04 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: 29,818
Karma: 54830978
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
You are looking for Bulk Mode Metadata Edit: Search and Replace

Select 2 or more books (with the same problem pattern), Tap E; Switch to the S&R tab
You can save (and recover ) the template of field values used
theducks is offline   Reply With Quote
Advert
Old 05-31-2016, 02:25 PM   #3
fidvo
Addict
fidvo ought to be getting tired of karma fortunes by now.fidvo ought to be getting tired of karma fortunes by now.fidvo ought to be getting tired of karma fortunes by now.fidvo ought to be getting tired of karma fortunes by now.fidvo ought to be getting tired of karma fortunes by now.fidvo ought to be getting tired of karma fortunes by now.fidvo ought to be getting tired of karma fortunes by now.fidvo ought to be getting tired of karma fortunes by now.fidvo ought to be getting tired of karma fortunes by now.fidvo ought to be getting tired of karma fortunes by now.fidvo ought to be getting tired of karma fortunes by now.
 
Posts: 296
Karma: 1599870
Join Date: Jun 2012
Device: none
Quote:
Originally Posted by theducks View Post
You are looking for Bulk Mode Metadata Edit: Search and Replace

Select 2 or more books (with the same problem pattern), Tap E; Switch to the S&R tab
You can save (and recover ) the template of field values used
Specifically, the Search and Replace uses Regular Expressions, so if you can create your templates in regex, you can then save them in the Search and Replace screen and use them as needed.
fidvo is offline   Reply With Quote
Old 05-31-2016, 07:32 PM   #4
BetterRed
null operator (he/him)
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 20,590
Karma: 26954694
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Quote:
Originally Posted by theducks View Post
You are looking for Bulk Mode Metadata Edit: Search and Replace

Select 2 or more books (with the same problem pattern), Tap E; Switch to the S&R tab
You can save (and recover ) the template of field values used


Quote:
Originally Posted by fidvo View Post
Specifically, the Search and Replace uses Regular Expressions, so if you can create your templates in regex, you can then save them in the Search and Replace screen and use them as needed.


Backup your library before using Bulk S&R - if you screw up there's no undo. If your library is 'big' you could create a test library from a subset via the right click Copy to library feature.

BR
BetterRed is online now   Reply With Quote
Old 06-03-2016, 10:55 AM   #5
kunkel321
Enthusiast
kunkel321 began at the beginning.
 
Posts: 45
Karma: 10
Join Date: Apr 2016
Location: Near Seattle
Device: Amazon Fire 10
Thanks for the tips! I may have found a bug. I'm not seeing a bug thread, so I'll put it here for now. I wanted to make a temporary library and copy some books to it for testing. I got an error when trying to make it. See image:


The error message:
========================
calibre, version 2.58.0
ERROR: Unhandled exception: <b>ConstraintError</b>:ConstraintError: NOT NULL constraint failed: __js_settings.val

calibre 2.58 [64bit] embedded-python: True is64bit: True
Windows-7-6.1.7601-SP1 Windows ('64bit', 'WindowsPE')
('Windows', '7', '6.1.7601')
Python 2.7.9
Windows: ('7', '6.1.7601', 'SP1', 'Multiprocessor Free')
Successfully initialized third party plugins: Job Spy && Recipe Reader && Find Duplicates && Reading List && Count Pages && Clean Metadata && X-Ray Creator && KindleUnpack - The Plugin
Traceback (most recent call last):
File "site-packages\calibre\gui2\dialogs\choose_library.py", line 185, in accept
File "site-packages\calibre\gui2\dialogs\choose_library.py", line 130, in perform_action
File "site-packages\calibre\gui2\actions\choose_library.py", line 607, in choose_library_callback
File "site-packages\calibre\gui2\ui.py", line 685, in library_moved
File "calibre_plugins.job_spy.ui", line 91, in library_changed
File "calibre_plugins.job_spy.ui", line 1402, in migrate_preferences_to_settings
File "c:\cygwin64\home\kovid\sw\build\apsw-3.8.2-r1\src\cursor.c", line 231, in resetcursor
ConstraintError: ConstraintError: NOT NULL constraint failed: __js_settings.val
================
It does appear that the library was created though...
Attached Thumbnails
Click image for larger version

Name:	Y9z1mFD.png
Views:	148
Size:	86.6 KB
ID:	149306  

Last edited by issybird; 06-09-2016 at 01:31 AM. Reason: Oversize image thumbnailed.
kunkel321 is offline   Reply With Quote
Advert
Old 06-03-2016, 11:04 AM   #6
DaltonST
Deviser
DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.
 
DaltonST's Avatar
 
Posts: 2,265
Karma: 2090983
Join Date: Aug 2013
Location: Texas
Device: none
Try Updating Your Plugins...

Quote:
Originally Posted by kunkel321 View Post
Thanks for the tips! I may have found a bug. I'm not seeing a bug thread, so I'll put it here for now. I wanted to make a temporary library and copy some books to it for testing. I got an error when trying to make it. See image:
image deleted - mod

The error message:
========================
calibre, version 2.58.0
ERROR: Unhandled exception: <b>ConstraintError</b>:ConstraintError: NOT NULL constraint failed: __js_settings.val

calibre 2.58 [64bit] embedded-python: True is64bit: True
Windows-7-6.1.7601-SP1 Windows ('64bit', 'WindowsPE')
('Windows', '7', '6.1.7601')
Python 2.7.9
Windows: ('7', '6.1.7601', 'SP1', 'Multiprocessor Free')
Successfully initialized third party plugins: Job Spy && Recipe Reader && Find Duplicates && Reading List && Count Pages && Clean Metadata && X-Ray Creator && KindleUnpack - The Plugin
Traceback (most recent call last):
File "site-packages\calibre\gui2\dialogs\choose_library.py", line 185, in accept
File "site-packages\calibre\gui2\dialogs\choose_library.py", line 130, in perform_action
File "site-packages\calibre\gui2\actions\choose_library.py", line 607, in choose_library_callback
File "site-packages\calibre\gui2\ui.py", line 685, in library_moved
File "calibre_plugins.job_spy.ui", line 91, in library_changed
File "calibre_plugins.job_spy.ui", line 1402, in migrate_preferences_to_settings
File "c:\cygwin64\home\kovid\sw\build\apsw-3.8.2-r1\src\cursor.c", line 231, in resetcursor
ConstraintError: ConstraintError: NOT NULL constraint failed: __js_settings.val
================
It does appear that the library was created though...

You really should keep all of your plug-ins updated. You clearly are using an old version of the plug-in that caused this error.

I will let you figure out which it is.


DaltonST

Last edited by issybird; 06-09-2016 at 01:33 AM.
DaltonST is offline   Reply With Quote
Old 06-09-2016, 02:18 PM   #7
kunkel321
Enthusiast
kunkel321 began at the beginning.
 
Posts: 45
Karma: 10
Join Date: Apr 2016
Location: Near Seattle
Device: Amazon Fire 10
Quote:
Originally Posted by DaltonST View Post
You really should keep all of your plug-ins updated. You clearly are using an old version of the plug-in that caused this error.
I will let you figure out which it is.
DaltonST
Hmm... Yes, thanks for the tip. I was actually just going through my plugins and realized that I installed them to try them out, but don't actually use any of them.

Looks like this one is KindleUnpack.
kunkel321 is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Rename books and change covers on Paperwhite mcjtom Devices 9 09-26-2016 07:36 PM
How to rename epub books by title and author westiti Library Management 3 01-29-2016 07:25 AM
Using F1 key to rename books? Dullahir Library Management 4 04-14-2014 01:51 AM
Automatically rename books with number of the serie Ansem_93 Library Management 29 03-26-2013 06:32 AM
Move/rename books and retain annotations md02439 iRex 2 12-03-2011 06:20 PM


All times are GMT -4. The time now is 07:11 AM.


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