Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 11-14-2022, 03:27 AM   #1
tn4w
Enthusiast
tn4w began at the beginning.
 
Posts: 34
Karma: 10
Join Date: Aug 2022
Device: Windows 10
Command that outputs a list of identifier values

Hello,

I'm wondering if it is possible with a command to output a list of custom identifier values from all the stored books. The custom identifier I'd like to output is named asin.

I tried the followings

- calibredb list --field=identifiers - lists the labels of identifiers such as mobi-asin, isbn, asin for each item.
- calibredb list --field identifiers:asin - "Unknown fields: identifiers:asin"
- calibredb list --field identifiers=asin - "Unknown fields: identifiers=asin"
- calibredb list --field=identifiers:asin - "Unknown fields: identifiers:asin"


Is it possible? Thanks.
tn4w is offline   Reply With Quote
Old 11-14-2022, 06:13 AM   #2
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 45,310
Karma: 27111242
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
calibredb list --search identifiers:asin:true --field identifiers
kovidgoyal is online now   Reply With Quote
Advert
Old 11-14-2022, 06:46 AM   #3
tn4w
Enthusiast
tn4w began at the beginning.
 
Posts: 34
Karma: 10
Join Date: Aug 2022
Device: Windows 10
Quote:
calibredb list --search identifiers:asin:true --field identifiers
It just shows book IDs and identifier labels like

Code:
...
18125 mobi-asin, asin
18126 mobi-asin, asin
18127 mobi-asin, asin
I want actual assigned values, something like

Code:
...
18125 B09S113LSH
18126 B0BM6NKVPS
18127 B0BM696KRV
tn4w is offline   Reply With Quote
Old 11-14-2022, 07:33 AM   #4
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 45,310
Karma: 27111242
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Use --for-machine
kovidgoyal is online now   Reply With Quote
Old 11-14-2022, 07:51 AM   #5
tn4w
Enthusiast
tn4w began at the beginning.
 
Posts: 34
Karma: 10
Join Date: Aug 2022
Device: Windows 10
This worked. Thank you so much!
Code:
calibredb list --search identifiers:asin:true --field identifiers --for-machine
tn4w is offline   Reply With Quote
Advert
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Save to device outputs maddz Library Management 7 07-19-2018 10:31 AM
deleting tag values from the drop down list peaceridge Calibre 12 12-14-2014 11:13 AM
Custom Column Colors for "Text but with a fixed list of permitted values" Skeeve Calibre 5 04-03-2014 01:44 PM
Custom Column with list of permitted values Eugenie Library Management 1 01-10-2012 03:57 AM
refresh book list command fbdev Kindle Developer's Corner 1 09-10-2011 10:27 AM


All times are GMT -4. The time now is 12:14 AM.


MobileRead.com is a privately owned, operated and funded community.