![]() |
#1 |
Junior Member
![]() Posts: 9
Karma: 10
Join Date: Jun 2018
Device: None
|
Add custom column via calibre server
I am trying to use a running calibreserver to create a custom column. I saw that there is an option to route commands to calibredb, so I ran an example query below
http://ip ![]() with this payload Code:
{ "label": "page_count", "name": "page_count", "datatype": "int" } Code:
{ "tb": "Traceback (most recent call last):\n File \"site-packages\\calibre\\srv\\cdb.py\", line 58, in cdb_run\n File \"site-packages\\calibre\\db\\cli\\cmd_add_custom_column.py\", line 19, in implementation\nNotImplementedError\n", "err": "" } Is there any reason that it raises the NotImplemented error? Can it be added if it is not already functional? The main goal would be to remove the need for my docker container to contain the calibredb binary and still be able to interact with a running server. End goal is to create a page count column if one does not already exist. |
![]() |
![]() |
![]() |
#2 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,342
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Adding a custom column requires a database reload, which is not implemented for the server. If you run the command using actual calibredb, you will get the message:
The add_custom_column command is not supported with remote (server based) libraries Last edited by kovidgoyal; 08-26-2020 at 11:17 PM. |
![]() |
![]() |
Advert | |
|
![]() |
Tags |
api |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
How to use custom column and tag on calibre-server? | yourrable | Server | 2 | 12-16-2018 03:26 AM |
Add Custom Column To Category Side Panel | TashPerth | Library Management | 3 | 04-25-2017 11:10 AM |
Documentation: How to Add a New Custom Column Datatype | DaltonST | Development | 7 | 07-03-2016 12:51 PM |
Is there a way to add the metadata AND also the filename in a custom column? | LadyKate | Library Management | 5 | 10-10-2014 01:13 PM |
Custom Column on Content Server: 404 Not Found | annekaelber | Calibre | 14 | 04-05-2014 04:39 AM |