04-21-2021, 07:57 AM | #1 |
Connoisseur
Posts: 77
Karma: 2136220
Join Date: Sep 2012
Device: none
|
Get book ID by file path
Hi,
I would like to create a bash script to modify metadata of a book given the book path. I see that calibredb need the book id and I'd like to know how to get the book id knowing the book path. I've seen that in the book pat there is a number between parenthesis. Is it that the ID? If so, can I safely take the ID extracting it from the path string or is it better to query calibredb? If it is better to query calibre, which query should I use to get the id knowing the path? The path must be an absolute one or only the substring below the calibre library folder? |
04-21-2021, 09:21 AM | #2 |
creator of calibre
Posts: 43,850
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
yes the number in the brackets is the book id. use it
|
Advert | |
|
04-21-2021, 09:22 AM | #3 |
Connoisseur
Posts: 77
Karma: 2136220
Join Date: Sep 2012
Device: none
|
Thanks!
|
04-22-2021, 02:41 AM | #4 |
Interested in the matter
Posts: 421
Karma: 426094
Join Date: Dec 2011
Location: Spain, south coast
Device: Pocketbook InkPad 3
|
As I do.
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Save File Path | crutledge | Calibre | 5 | 04-13-2013 10:21 AM |
File path | JimmyG | Sigil | 1 | 02-15-2013 12:40 PM |
File Path | iceman00 | Calibre | 6 | 04-24-2010 04:35 PM |
Remove file path from PDF file | DuckDodgers | 1 | 08-13-2006 09:23 AM |