View Single Post
Old 01-15-2014, 05:08 AM   #2
Adoby
Handy Elephant
Adoby ought to be getting tired of karma fortunes by now.Adoby ought to be getting tired of karma fortunes by now.Adoby ought to be getting tired of karma fortunes by now.Adoby ought to be getting tired of karma fortunes by now.Adoby ought to be getting tired of karma fortunes by now.Adoby ought to be getting tired of karma fortunes by now.Adoby ought to be getting tired of karma fortunes by now.Adoby ought to be getting tired of karma fortunes by now.Adoby ought to be getting tired of karma fortunes by now.Adoby ought to be getting tired of karma fortunes by now.Adoby ought to be getting tired of karma fortunes by now.
 
Adoby's Avatar
 
Posts: 1,417
Karma: 10333332
Join Date: Dec 2009
Location: Southern Sweden, far out in the quiet woods
Device: Ubuntu LTS, Huawei Mediapad 5, Bouye Likebook Plus
You may not need the filename. If there is a ISBN-number in the book, you can use the ISBN-plugin to extract it, and then download the metadata using only that.

Or you can read in the whole filename to the title and the use bulk metadata search and replace, with regexp, to set the author.

[^_]+ will match a string until there is a underscore.

Search title for

^([^_]+)_([^_]+)_(.+)$

And replace author with

\1 \2

(or possibly \2 \1 if you want firstname surname)

Then do the same but replace title with

\3

Not tested...

I leave it to you to figure out how to remove underscores from the title.

Last edited by Adoby; 01-15-2014 at 05:13 AM.
Adoby is offline   Reply With Quote