Quote:
Originally Posted by EmilThelonius
Thank You – I will try that!
For the time being I found another solution: I used the folder containing the file. There the ID is in Brackets. So I can get the ID with the Code:
Code:
i=$(echo "$1" | awk -F'[()]' '{print $2}')
|

I started my post with: "You can extract the id from the book folder name...", but then I thought the
calibredb list --fields solution might be better.
Now you have two ways to get what you want.
BR