View Single Post
Old 03-12-2011, 08:00 PM   #4
Sabkor
Junior Member
Sabkor began at the beginning.
 
Posts: 5
Karma: 10
Join Date: Mar 2011
Device: PocketBook Pro 902
I'm not adding a column, I'm just adding data to a custom column. (I created the custom column in the GUI.)

Edit:

Maybe an example of what I'm doing would help. I have a batch file that does this:

calibredb list -f uuid -s search:"News" > genrenews.txt
for /F "tokens=1 skip=1 %%B in (genrenews.txt) DO calibredb set_custom genre %%B News

The first line does a saved search for all ebooks that have News as a tag, but not News as my custom column Genre and dumps that to a file. The second line updates my custom column, Genre, to be 'News' for each of those ebooks. However, if the GUI is running when I do this, calibre is never notified of the DB update. So the Genre column never updates to show the new information. If I open the ebook information, it does not show 'News' in the Genre column.

If I close and reopen Calibre, then it re-reads the database and everything is fine.

I'm wondering if this is a bug, or if there's some (command-line) way I can notify the Calibre GUI that the data in the database has changed and that it should re-read it.

Last edited by Sabkor; 03-12-2011 at 08:10 PM.
Sabkor is offline   Reply With Quote