Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Software > Calibre > Library Management

Notices

Reply
 
Thread Tools Search this Thread
Old 04-18-2018, 10:38 AM   #1
tarisea
Zealot
tarisea got an A in P-Chem.tarisea got an A in P-Chem.tarisea got an A in P-Chem.tarisea got an A in P-Chem.tarisea got an A in P-Chem.tarisea got an A in P-Chem.tarisea got an A in P-Chem.tarisea got an A in P-Chem.tarisea got an A in P-Chem.tarisea got an A in P-Chem.tarisea got an A in P-Chem.
 
Posts: 114
Karma: 6288
Join Date: Dec 2012
Device: iphone
Bulk Edit Title

Can someone explain in small words how to fix the title of added books coming in as

Title (Series Info) or sometimes Title (Series Info) (Publisher)

I would love to put Series Info into the Series column but I will settle for dumping everything after the first ( into a customer column.

Small words. All the programing and expressions go right over my head. Thank you very much
tarisea is offline   Reply With Quote
Old 04-18-2018, 03:27 PM   #2
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
Automatic JS Quality Fixes and Auto-Run Several Quality-Related Jobs

  • Auto-Add Books: Automatic JS Quality Fixes and Auto-Run Several Quality-Related Jobs
  • Apply JS Quality Fixes and Auto-Run Several Quality-Related Jobs for User-Selected Books


No guarantees, but see the attached. The "landscape" image has example titles on its right side.


https://www.mobileread.com/forums/sh...d.php?t=269911



DaltonST
Attached Thumbnails
Click image for larger version

Name:	js_quality_fixes_apply_manually.jpg
Views:	113
Size:	1.09 MB
ID:	163551   Click image for larger version

Name:	js_auto_add_scrub_titles_example.jpg
Views:	113
Size:	535.9 KB
ID:	163552  
DaltonST is offline   Reply With Quote
Advert
Old 04-19-2018, 01:11 AM   #3
davidfor
Grand Sorcerer
davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.
 
Posts: 24,905
Karma: 47303824
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
Quote:
Originally Posted by tarisea View Post
Can someone explain in small words how to fix the title of added books coming in as

Title (Series Info) or sometimes Title (Series Info) (Publisher)

I would love to put Series Info into the Series column but I will settle for dumping everything after the first ( into a customer column.

Small words. All the programing and expressions go right over my head. Thank you very much
How the metadata is read for a book being added to calibre is set on the "Adding books" page of the preferences. There are two main options. The first is whether to read the metadata from the metadata inside the book. This is my preferred option as more and more books have reasonable metadata.

The next is the regex used to get the metadata from the file name. This is used if the above option is turned off, or the book doesn't contain metadata. From what you are saying, you probably have a simple regex such as:
Code:
(?P<title>.+) - (?P<author>[^_]+)
That would put everything before a dash into the title, and everything after it into the author. There should be a few examples on the Adding books page, but exactly what you need depends on the file names being used. For example, if I take the first example as exactly what you see in the title, then the file name probably looked something like:
Code:
title (series info) - author

Skin Game (The Dresden Files 15) - Jim Butcher
If that is correct, then the following should work:

Code:
(?P<title>[^_].+) ?\s*\((?P<series>[^_0-9-]*)(?P<series_index>[0-9]*)\)\s*-\s*(?P<author>[^_-]+) ?
That shouldn't be hard to expand to include the publisher, or different delimiters around the series info. But, suggesting more, I would need to know more about the file names you are seeing.
davidfor is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Title sort option failing at bulk metadata edit Terisa de morgan Library Management 2 12-21-2015 04:10 AM
Edit Title Field in Edit Metadata window goldilocks Library Management 7 11-08-2015 10:09 PM
Title bulk edit match - to remove series info from title Rob557 Library Management 30 12-09-2014 06:06 AM
Bulk fill title with same value (like bulk rename author)? rebl Library Management 1 08-22-2014 12:05 PM
Bulk metada edit error trying to edit tags Purple Lady Calibre 8 02-17-2011 06:09 PM


All times are GMT -4. The time now is 08:54 PM.


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