View Single Post
Old 09-15-2013, 01:56 PM   #3
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,737
Karma: 26785684
Join Date: Dec 2009
Location: Southern Sweden, far out in the quiet woods
Device: Samsung Galaxy Tab S8 Ultra
As the ducks says, elements from the path can't be used when importing, only from the filename.

One way you could fix this is to rename all your files to include what is now the path into the filename. And then do the import.

For instance rename

c:\books\sysadmin\linux\dns\Alena Kabelová & Libor Dostálek - DNS in Action.pdf

To

c:\books\sysadmin.linux.dns - Alena Kabelová & Libor Dostálek - DNS in Action.pdf

Then do the import. Read in the whole name as the title. After that use some bulk metadata search and replace with regex to put the right parts of the title into the fields #subject, authors and title.

It should be possible to automate most of the process and do it in bulk.

For instance list all books recursively and put the names and paths in a text file. Then use some editor or other tool to convert in bulk each line into a copy or rename command. Excel or Libre Calc would be possible to use. As would most advanced editors with scripting.

Then run the script to rename all the files in one fell swoop, and do the import in bulk.

One problem is that the filenames may become too long if you are working in Windows. Linux should work better.
Adoby is offline   Reply With Quote