Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Plugins

Notices

Reply
 
Thread Tools Search this Thread
Old 10-08-2017, 10:34 PM   #1741
davidfor
Grand Sorcerer
davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.
 
Posts: 24,907
Karma: 47303748
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
Quote:
Originally Posted by compurandom View Post
Ahh! Perhaps that's the big delay I sometimes see after syncing books. (It'd sure be nice to have some kind of background job progress update on that!)
Updating the series info is part of the "Sending metadata to device" job. The collections are also part of that job. If you make a lot of changes, then this job can take a lot longer to run.
Quote:
Maybe what I want is manual updating of the series info too!
There is an option to turn it off in the driver and you can use the utilities plugin to set it.
Quote:
Actually, what would be nice would be a manual trigger that checkes for the missing "already updated" tag and automatically updates and tags those with series and the rest of the metadata.
You can easily search for all the books without the tag, select them and run the update. And if I was implementing something like that, I'd be more likely to do it based on the existence of a tag. Or have it use a reading list.
davidfor is offline   Reply With Quote
Old 10-09-2017, 06:38 AM   #1742
davidfor
Grand Sorcerer
davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.
 
Posts: 24,907
Karma: 47303748
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
Beta - fix for DRM protected books

Quote:
Originally Posted by reinhardtjh View Post
I have had a Kobo Aura since 2015. And sometime in April I upgraded the firmware to the new 4.x series, currently 4.5.9587. I went a few weeks before adding any new books, but when I finally did, i started getting this error on "Send to Device"

Code:
calibre, version 3.7.0
ERROR: Error: Error communicating with device

This file is locked with DRM. It cannot be edited.

Traceback (most recent call last):
  File "site-packages/calibre/gui2/device.py", line 88, in run
  File "site-packages/calibre/gui2/device.py", line 592, in _upload_books
  File "calibre_plugins.kobotouch_extended.device.driver", line 335, in upload_books
  File "site-packages/calibre/devices/kobo/driver.py", line 2014, in upload_books
  File "calibre_plugins.kobotouch_extended.device.driver", line 179, in _modify_epub
  File "site-packages/calibre/ebooks/oeb/polish/container.py", line 1165, in __init__
  File "site-packages/calibre/ebooks/oeb/polish/container.py", line 1237, in process_encryption
DRMError: This file is locked with DRM. It cannot be edited.

I fussed with it for quite a while, going so far as to reset my Aura to factory setting, deleting all books and starting over but still I got the error - even on books I'd previously (before the firmware upgrade) loaded with no problem. Not on every book but most of them. I finally switched the Calibre driver back the "main" Kobo driver and no error. Books that would not load, did. So I switched back to the extended driver and I get the error. So whatever it is, it's something between the extended driver and the newer firmware on the Aura.

I watched here to see if anyone else would report it but I haven't seen it (or I missed it). So could it be something that I'm doing?
Sorry, I completely forgot about this. The attached beta should solve the problem with DRM protected books. They will be uploaded to the device with no changes made to them. Please test and report how it goes.
Attached Files
File Type: zip KoboTouchExtended-beta.zip (30.5 KB, 122 views)
davidfor is offline   Reply With Quote
Advert
Old 10-09-2017, 07:42 AM   #1743
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 73,957
Karma: 128903250
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by davidfor View Post
That is correct.


And this is one of the reasons I've never implemented the metadata update in the driver; it could take to long.
Why not do it in the Reading List plugin? When we make a change to the metadata, we mark the book in the list to have the metadata updated on next connect. That way it's up to us to do it just like it is to use the Reading List to automatically put books on the device on connecting to Calibre.

That would make it much faster and as I don't update Metadata once the book in on the device, I would not have to wait for Kobo Utilities to find out I have no metadata to update.
JSWolf is offline   Reply With Quote
Old 10-09-2017, 08:45 AM   #1744
Terisa de morgan
Grand Sorcerer
Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.
 
Terisa de morgan's Avatar
 
Posts: 6,233
Karma: 11768331
Join Date: Jun 2009
Location: Madrid, Spain
Device: Kobo Clara/Aura One/Forma,XiaoMI 5, iPad, Huawei MediaPad, YotaPhone 2
Quote:
Originally Posted by JSWolf View Post
Why not do it in the Reading List plugin? When we make a change to the metadata, we mark the book in the list to have the metadata updated on next connect. That way it's up to us to do it just like it is to use the Reading List to automatically put books on the device on connecting to Calibre.
In my country we would say that you repeat the same as the cucumber
Terisa de morgan is offline   Reply With Quote
Old 10-09-2017, 09:41 AM   #1745
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 73,957
Karma: 128903250
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by Terisa de morgan View Post
In my country we would say that you repeat the same as the cucumber
I don't like cucumbers.
JSWolf is offline   Reply With Quote
Advert
Old 10-09-2017, 09:47 AM   #1746
Terisa de morgan
Grand Sorcerer
Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.
 
Terisa de morgan's Avatar
 
Posts: 6,233
Karma: 11768331
Join Date: Jun 2009
Location: Madrid, Spain
Device: Kobo Clara/Aura One/Forma,XiaoMI 5, iPad, Huawei MediaPad, YotaPhone 2
Quote:
Originally Posted by JSWolf View Post
I don't like cucumbers.
But you repeat the same :P
Terisa de morgan is offline   Reply With Quote
Old 10-09-2017, 10:00 AM   #1747
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 73,957
Karma: 128903250
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by Terisa de morgan View Post
But you repeat the same :P
And why wouldn't metadata updating be best as part of the Reading List plugin?
JSWolf is offline   Reply With Quote
Old 10-09-2017, 10:06 AM   #1748
Terisa de morgan
Grand Sorcerer
Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.
 
Terisa de morgan's Avatar
 
Posts: 6,233
Karma: 11768331
Join Date: Jun 2009
Location: Madrid, Spain
Device: Kobo Clara/Aura One/Forma,XiaoMI 5, iPad, Huawei MediaPad, YotaPhone 2
Quote:
Originally Posted by JSWolf View Post
And why wouldn't metadata updating be best as part of the Reading List plugin?
How many times has you said it? At other thread when we already talked about this? When I told you that it is Kobo specific? Something I think you're aware as you are at Kobo driver thread?

Anyway, it's not up to me, I'm not going to code at any of both places.
Terisa de morgan is offline   Reply With Quote
Old 10-09-2017, 10:57 AM   #1749
jackie_w
Grand Sorcerer
jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.
 
Posts: 6,212
Karma: 16534894
Join Date: Sep 2009
Location: UK
Device: Kobo: KA1, ClaraHD, Forma, Libra2, Clara2E. PocketBook: TouchHD3
Quote:
Originally Posted by JSWolf View Post
And why wouldn't metadata updating be best as part of the Reading List plugin?
Well, the main reason for me would be that I've never felt the need to install the Reading List plugin
jackie_w is offline   Reply With Quote
Old 10-09-2017, 12:01 PM   #1750
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 73,957
Karma: 128903250
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by jackie_w View Post
Well, the main reason for me would be that I've never felt the need to install the Reading List plugin
It's really good. It's allowing me to keep track of what books I have on my H2O and it also allows me to select which books I want to send to my H2O. I just select the books I want, add them to the list and when I plug in my H2O, they get sent. It means I don't have to remember which books I wanted.

Now, because it already has the facility to let me select books I want to copy to my Reader upon connect, it could be modified to do the same for Metadata. Kobo is not the only Reader where a metadata update would work and be beneficial.
JSWolf is offline   Reply With Quote
Old 10-09-2017, 01:41 PM   #1751
jackie_w
Grand Sorcerer
jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.
 
Posts: 6,212
Karma: 16534894
Join Date: Sep 2009
Location: UK
Device: Kobo: KA1, ClaraHD, Forma, Libra2, Clara2E. PocketBook: TouchHD3
Quote:
Originally Posted by JSWolf View Post
It's really good.
I'm sure it is, given how popular it is. It's just that I had a different simple workflow in place long before the Reading List plugin became available and I never found enough reason to change it.
jackie_w is offline   Reply With Quote
Old 10-09-2017, 04:32 PM   #1752
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 73,957
Karma: 128903250
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by jackie_w View Post
I'm sure it is, given how popular it is. It's just that I had a different simple workflow in place long before the Reading List plugin became available and I never found enough reason to change it.
But, putting metadata updating into the Reading List plugin would benefit more than Kobo users.
JSWolf is offline   Reply With Quote
Old 10-09-2017, 07:19 PM   #1753
davidfor
Grand Sorcerer
davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.
 
Posts: 24,907
Karma: 47303748
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
Quote:
Originally Posted by JSWolf View Post
But, putting metadata updating into the Reading List plugin would benefit more than Kobo users.
No it wouldn't. If you look, all the other devices either update the metadata automatically when the device is connected, or don't update it at all. As far as I know, Kobo Utilities is the only way to update metadata on the device that isn't in the driver. So to have the Reading List plugin update the metadata for any device, someone would need to add code to the plugin to be able to update the metadata for all the devices out there. And, that would be very time consuming. And to be honest way beyond stupid.

The sensible way is to use the Reading List plugin as a way to collect books. Other plugins can then be configured to use a list as an input to do some action. Such as the Kobo Utilities using a list as the set of books to update the metadata for on the device.

Now the Reading List plugin can trigger uploading books when a device is connected. So, it could be possible to add function to call another plugin when the device is connected and supply the list as a input. That is a good idea, with only one issue.

The issue? There is only one plugin out there that has function that makes sense to be called when a device is plugged in. Can you guess which it is? Yes, Kobo Utilities plugin.*

There are other issues, but, they are design/development ones. Such as, do you allow multiple plugins to be called? If so, what order? What if one fails? And we starting jobs or waiting for function to finish before the next.

* Well not quite true, but I'll let you work out why. And please, actually look at the plugins before you use them for justification.
davidfor is offline   Reply With Quote
Old 10-13-2017, 12:39 AM   #1754
compurandom
Guru
compurandom ought to be getting tired of karma fortunes by now.compurandom ought to be getting tired of karma fortunes by now.compurandom ought to be getting tired of karma fortunes by now.compurandom ought to be getting tired of karma fortunes by now.compurandom ought to be getting tired of karma fortunes by now.compurandom ought to be getting tired of karma fortunes by now.compurandom ought to be getting tired of karma fortunes by now.compurandom ought to be getting tired of karma fortunes by now.compurandom ought to be getting tired of karma fortunes by now.compurandom ought to be getting tired of karma fortunes by now.compurandom ought to be getting tired of karma fortunes by now.
 
Posts: 919
Karma: 417282
Join Date: Jun 2015
Device: kobo aura h2o, kobo forma
Ok, I've got a feature request, and I'm not sure this driver (or the kobo utilities) is where it should go...

Under preferences -> import/export -> sending books
I have metadata management set to manual for some reason I can't remember, maybe I didn't want calibre deleting categories from books that I added directly on the device or something.

Is there a way I can force calibre to re-update the metadata for a book manually?
Specifically, I've added shelves to a bunch of books in calibre (I know which ones) since they were originally sent, and I'd like to resync those by hand.

Alternately, if I could tell it to automatically sync all new shelves without deleting existing ones, that would be even better.

I was hoping "update metadata" in kobo utilties would update shelves, but unless I missed a checkbox, it doesn't. There's a "get shelves" option, but no corresponding "put shelves".

Last edited by compurandom; 10-13-2017 at 12:51 AM.
compurandom is offline   Reply With Quote
Old 10-13-2017, 01:42 AM   #1755
davidfor
Grand Sorcerer
davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.
 
Posts: 24,907
Karma: 47303748
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
Quote:
Originally Posted by compurandom View Post
Ok, I've got a feature request, and I'm not sure this driver (or the kobo utilities) is where it should go...

Under preferences -> import/export -> sending books
I have metadata management set to manual for some reason I can't remember, maybe I didn't want calibre deleting categories from books that I added directly on the device or something.

Is there a way I can force calibre to re-update the metadata for a book manually?
Specifically, I've added shelves to a bunch of books in calibre (I know which ones) since they were originally sent, and I'd like to resync those by hand.

Alternately, if I could tell it to automatically sync all new shelves without deleting existing ones, that would be even better.

I was hoping "update metadata" in kobo utilties would update shelves, but unless I missed a checkbox, it doesn't. There's a "get shelves" option, but no corresponding "put shelves".
The driver is the only way to get the collection management done. And you need metadata management set to automatic. You can choose "Only on send" and the collection management should be done whenever you send a book, but not on connect. There is a function on the device button when it is connected that updates the metadata.calibre file on the device. I can't remember if that goes through the collection management code or not, and if it does, I can't remember what the affect of the metadata management setting is.

I did recently noticed the lack of a way to manually run the collection management. I haven't decided what to do about it. But, it would most likely just be a way to trigger what is in the driver and use the same options. I'm not sure if that is possible without refactoring the code in the driver.

If I do this, I will be actively resisting suggestions to only add new collections to the device. The code currently compares what should be there based on the columns in library with what is on the device. Then it adds or removes entries to get them to match. Just adding certain collections means that there needs to be a way to remove them later.
davidfor is offline   Reply With Quote
Reply

Tags
error, kobo aura one


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Kobo Device Driver Update davidfor Devices 284 05-24-2019 05:24 PM
[Device Plugin] Kindle 2, 3, 4, Touch Device Interface MBP Update Mod cryzed Plugins 7 10-28-2012 04:58 PM
[Device Interface Plugin] Update for Nook Color Driver jmricker Plugins 0 10-22-2011 10:11 AM
Touch Kobo Touch Extended 2 Year Warranty - Is it worth the $34.99? EverC Kobo Reader 11 08-31-2011 11:47 PM
Touch Kobo Touch Extended Warranty Program SensualPoet Kobo Reader 1 07-17-2011 04:08 AM


All times are GMT -4. The time now is 09:32 PM.


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