View Single Post
Old 09-12-2019, 12:10 AM   #3
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: 21,825
Karma: 30277270
Join Date: Mar 2012
Location: Sydney Australia
Device: none
If it were to be done, it would probably have to be done in a plugin, and it would need to be a File Type plugin (they run as books are added). IIRC such plugins can't be interactive when books are added, I only know of two File Type plugins - Alf's DRM gadget and the GetFileName plugin.

Almost all plugins have been developed by the people who need them, I've sometimes seen people offering to pay for a plugin - not sure if they ever found anyone.

I make any adjustments to the file names using file rename utilities before I add files to calibre - Xplorer˛'s rename function and/or Bulk Rename Utility. I don't try to get them perfect. I add to an Intake library where I make any metadata improvements/adjustments before moving the books to the target library.

BR

Quote:
Originally Posted by Cool Javelin View Post
The expressions method for adding books is a real great idea. It allows for flexibility in setting stuff up like author name, title, series, etc...

But entering the expressions in the "nuts and bolts" format is a real PITA.

Each time I want to add books, the filename downloaded may have the author name first, or not. The title first, or not, it may include a series name, or not.

Perhaps I want to get the metadata from within the file and that metadata is incorrect where it has the author name where the title belongs or other mistakes.

Using a complex character structure like...

^((?P<author>([^\-_0-9]+)(?=\s*-\s*)(?!\s*-\s*[0-9.]+)|\b))(\s*-\s*)?(\[?(?P<series>[^0-9\-]+) (- )?(?P<series_index>[0-9.]+)\]?\s*-\s*)?(?P<title>.+)

while detaild in the extreme, it is very difficult for us mere humans to remember and having to refer to the tutorial each time I want to change the expression turns a ten minute job into a few hour task.

Is there a plan in the works to streamline the task, or a plugin to set this expression for me?

I'd like to use a much higher level method to specify the expression.

Like having a series of options to choose from (say on the left) and build a list (say on the right) with add or remove buttons, then "move up" and "move down" arrows to rearrange the list.

Once the list is created have further options to refine the list items. For example: options for selecting hyphens or commas or other...

Also, having constants like the author name be allowed as that info may not be in the filename at all.

Once the list is built, have a "go" button to create the expression for me then I can hit the "add books" button.

Thanks, Mark.
BetterRed is offline   Reply With Quote