Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Software > Calibre > Library Management

Notices

Reply
 
Thread Tools Search this Thread
Old 01-20-2016, 11:22 AM   #1
Beltonmike
Junior Member
Beltonmike began at the beginning.
 
Posts: 5
Karma: 10
Join Date: Jan 2016
Device: odyssey
Automatic mark as read when sent to device

I've created a custom column "#read_m" and I'm trying to write a template for the send to device button (on the Preferences> sending books to devices page) which will write an "m" in that column. So far I've tried

{author_sort}/{title} - {authors} {#read_m:ifempty(m)}

{author_sort}/{title} - {authors} - {#read_mrint(test)}

{#read_m:ifempty(m)}

{#read_mrint(test)}

and various variations but nothing works for me. Am I trying to do something impossible or just not savy enough at coding
Beltonmike is offline   Reply With Quote
Old 01-20-2016, 12:15 PM   #2
chaley
"chaley", not "charley"
chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.
 
Posts: 7,242
Karma: 1955486
Join Date: Jan 2010
Location: France
Device: Many android devices
My guess is that you are changing the wrong template. The first time you connect to a device the template is copied to the setup for the device. Changing it in the preferences will have no effect.

Connect to the device, click on the down arrow on the Device icon and choose Configure this device. Change the template there. You might need to disconnect and reconnect before the template is taken into account.

Your first template will produce the contents of the #read_m column unless it is empty, in which case it will produce a lowercase m.
chaley is offline   Reply With Quote
Old 01-20-2016, 01:00 PM   #3
Beltonmike
Junior Member
Beltonmike began at the beginning.
 
Posts: 5
Karma: 10
Join Date: Jan 2016
Device: odyssey
Thanks for quick reply
I put

{author_sort}/{title} - {authors} {#read_m:ifempty(m)}

into the Device icon as you suggest restarted calibre unplugged replugged device but no luck #read_m stays empty.
Beltonmike is offline   Reply With Quote
Old 01-20-2016, 01:04 PM   #4
chaley
"chaley", not "charley"
chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.
 
Posts: 7,242
Karma: 1955486
Join Date: Jan 2010
Location: France
Device: Many android devices
I thought you were trying to put the value of #read_m into the file name. Are you trying to change the value stored in #read_m? If so, this cannot be done with the template language. It cannot change the db.

One way to accomplish this is while connected search for ondevice:true and #read_m:false. Select all the results and use bulk metadata update to change the value. It also might be possible for the reading list plugin to do something for you.
chaley is offline   Reply With Quote
Old 01-20-2016, 01:09 PM   #5
itimpi
Wizard
itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.
 
Posts: 4,221
Karma: 781373
Join Date: Nov 2008
Device: Sony PRS-950, iphone/ipad (Marvin/iBooks/QuickReader)
I think that the Reading List plugin might help with this issue.
itimpi is offline   Reply With Quote
Old 01-20-2016, 01:17 PM   #6
Beltonmike
Junior Member
Beltonmike began at the beginning.
 
Posts: 5
Karma: 10
Join Date: Jan 2016
Device: odyssey
Thanks Chaley I'll give that a look.
What I'm trying to do is mark a book or several books as read in #read_m when I send it to the device
Beltonmike is offline   Reply With Quote
Old 01-20-2016, 01:17 PM   #7
Beltonmike
Junior Member
Beltonmike began at the beginning.
 
Posts: 5
Karma: 10
Join Date: Jan 2016
Device: odyssey
Thanks Itimpi I'll give that a look.
Beltonmike is offline   Reply With Quote
Old 01-20-2016, 01:58 PM   #8
Beltonmike
Junior Member
Beltonmike began at the beginning.
 
Posts: 5
Karma: 10
Join Date: Jan 2016
Device: odyssey
Hi guys, Reading list works, thank you, it's a bit long winded and clunky but it seems to do the job. I'll keep playing with the settings and see how it goes
Beltonmike is offline   Reply With Quote
Reply

Tags
calibre template, mark as read, send to device

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Automatic routine when sending book to device (Kobo) Doonge Development 4 11-14-2014 09:20 PM
Is it possibly to mark a book as has read and I will read? photographer Library Management 3 01-02-2014 05:47 AM
Will automatic metadata management also transfer updated cover images to device? TheSacredSoul Library Management 2 01-11-2013 07:05 AM
Mark as read when remove from device ping192 Recipes 0 12-29-2012 06:04 PM
PRS-650 Mark all as read/Mark as unread mornington Sony Reader 7 07-05-2011 11:43 AM


All times are GMT -4. The time now is 08:44 PM.


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