|
|
#1 |
|
Enthusiast
![]() Posts: 34
Karma: 10
Join Date: Aug 2022
Device: Windows 10
|
Bulk-copying identifier values
Hello,
I'm looking for a way to bulk-copy identifier values of selected books. I've added books with an identifier named asin. In particular, I'd like to copy ASINs of books without a zip format with a certain keyword in the title and with a size over 20 MB. From the UI, I could successfully select books that match the following search criteria by sorting them by size. Code:
keyword and not formats:"=zip" Then, I tried the calibredb list command. Not sure if formats:"!=zip" is in effect as the result seems the same with formats:"=zip". Code:
calibredb list --search title:"keyword" identifiers:asin:true --fields identifiers,title formats:"!=zip" |
|
|
|
|
|
#2 | ||
|
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 31,324
Karma: 62025226
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Quote:
Quote:
You got me puzzled. ASIN (like ISBN) is a unique value assigned to an single book. How would you do BULK operations (as apposed to batch operations)? Last edited by theducks; 12-27-2022 at 08:48 AM. Reason: code tag looke poorly |
||
|
|
|
| Advert | |
|
|
|
|
#3 | |
|
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 81,013
Karma: 150249633
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
But for now, ASIN extraction is a manual process. |
|
|
|
|
|
|
#4 |
|
Enthusiast
![]() Posts: 34
Karma: 10
Join Date: Aug 2022
Device: Windows 10
|
Thanks for the info.
For now, I resort to a third-party SQL program. This query seems to do the job. Code:
SELECT identifiers.val FROM books LEFT JOIN data ON books.id = data.book LEFT JOIN identifiers ON identifiers.book = books.id WHERE title LIKE '%keyword%' AND data.format IN ( 'AZW3' ) AND data.format NOT IN ( 'ZIP' ) AND data.uncompressed_size >= 20000000 AND identifiers.type = 'asin'; |
|
|
|
![]() |
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Command that outputs a list of identifier values | tn4w | Calibre | 4 | 11-14-2022 08:51 AM |
| What identifier is this? | Rellwood | Library Management | 3 | 08-07-2021 12:15 AM |
| Custom Column Values - Bulk Add or Import? | userbooknerd | Library Management | 3 | 03-11-2021 05:15 PM |
| Bulk-add identifier | khonshu | Library Management | 6 | 07-21-2017 12:10 AM |
| Bulk fill title with same value (like bulk rename author)? | rebl | Library Management | 1 | 08-22-2014 01:05 PM |