![]() |
#1 |
Zealot
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 126
Karma: 50000
Join Date: Mar 2015
Device: none
|
Auto-add imported folder to collection with same name
Is this possible? Whenever I import a folder I usually manually create a collection for those books as they often are a logical collection of books and also so I can keep track of where they came from. It'd be cool if it could pull in the name of the folder and auto-group the imported books into a collection.
|
![]() |
![]() |
![]() |
#2 | |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 30,925
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Quote:
Saying another way: No metadata from anything but the filename (filename mode) A (normal ?) ADD CAN apply a TAG. Preferences: Adding Books |
|
![]() |
![]() |
Advert | |
|
![]() |
#3 |
null operator (he/him)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 21,648
Karma: 29711016
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
@truth1ness - for this situation, I have used a renamer to tack the path onto the end of the file name, which I write to the publisher column, and from their I've used Bulk S&R to stick it elsewhere. Usually they're all from the same publisher so while I'm there I 'correct' it in Bulk Metadata Edit (Basic).
And I do all this in my "NewBooks' library as mentoined here When I import and duplicates are detected how do I delete the old copy? This is another instance where the ability to populate a custom column with the 'path' of the original import would be useful. It has come up quite often, eschwartz has a solution of some sort. BR |
![]() |
![]() |
![]() |
#4 |
Ex-Helpdesk Junkie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 19,421
Karma: 85400180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
|
BR -- it is very custom, unfortunately.
![]() It relies on bash, so it won't work on Windows, and uses hardcoded assumptions about what a filename must look like. I'd like to fix that, but I don't know how to deal with named capturing groups purely in bash+universal utilities. It shouldn't be too hard though, to simply chain together calibredb add $file ==> $added_book_id ==> calibredb set_metadata -f "field1:contents1" $added_bookid The trick is to extract the right information from the path, and especially what to do if some of it is optional. |
![]() |
![]() |
![]() |
#5 | |
null operator (he/him)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 21,648
Karma: 29711016
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
Quote:
My method is likewise bespoke, enscapulated in saved rename & saved S&R, I don't need it often enough to make it better'n that. BR |
|
![]() |
![]() |
Advert | |
|
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Add jpg as cover when imported. | charlweed | Library Management | 1 | 06-13-2014 12:03 AM |
Is this possible: Auto-add book/magazine then auto e-mail to device? | runningwithbulls | Library Management | 5 | 09-10-2012 12:27 PM |
Cannot Read .htm file auto-imported as zip file | Jimbo724 | Conversion | 2 | 07-24-2012 06:08 AM |
Help with new feature: Auto-Add Folder | kbullkar | Library Management | 12 | 03-30-2012 06:15 AM |
Auto import from folder | benlau | Calibre | 3 | 01-19-2010 03:01 AM |