01-05-2015, 05:53 PM | #1 |
Junior Member
Posts: 7
Karma: 10
Join Date: Sep 2011
Device: PRS-650
|
smart_device_app - How to answer GET_BOOK_COUNT
Is there a documentation about this available?
Edit2: I've started over with another test book and currently it seems to work like expected. I'm curently trying to enhance the Calibre Wifi connection in koreader. My goal is to see in Calibre which books are already on the reader. For this I think I have to answer the GET_BOOK_COUNT JSON first with Code:
[0,{"count":1,"willScan":true,"willStream":true}] Code:
[0,{"_last_read_date_":"2015-01-05 01:21:16","_sync_type_":0,"extension":".epub","last_modified":"2015-01-05T01:10:47+00:00","lpath":"TestBook - Sample, Author (129).epub","priKey":1,"uuid":"20f8428b-5502-4d14-9c4a-86d207f59e24"}] Code:
calibre, version 2.15.0 FEHLER: Fehler: Fehler bei der Kommunikation mit dem Gerät 'list' object has no attribute 'get' Traceback (most recent call last): File "site-packages/calibre/gui2/device.py", line 87, in run File "site-packages/calibre/gui2/device.py", line 503, in _books File "site-packages/calibre/devices/smart_device_app/driver.py", line 50, in _synchronizer File "site-packages/calibre/devices/smart_device_app/driver.py", line 1331, in books AttributeError: 'list' object has no attribute 'get' This is the timeout message from Calibre if I don't send the book information: Code:
calibre, version 2.15.0 FEHLER: Fehler: Fehler bei der Kommunikation mit dem Gerät There was a timeout while communicating with the device in function: Device did not respond in reasonable time Traceback (most recent call last): File "site-packages/calibre/gui2/device.py", line 87, in run File "site-packages/calibre/gui2/device.py", line 503, in _books File "site-packages/calibre/devices/smart_device_app/driver.py", line 50, in _synchronizer File "site-packages/calibre/devices/smart_device_app/driver.py", line 1260, in books File "site-packages/calibre/devices/smart_device_app/driver.py", line 644, in _receive_from_client TimeoutError: There was a timeout while communicating with the device in function: Device did not respond in reasonable time I still can't figure out why my metadata, which I send in the book information doesn't seem to match the cache. I've taken the values directly from the SEND_BOOK JSON at the time the book was send to the device. I've took the uuid, lpath and last_modified from this. Last edited by Maniac; 01-05-2015 at 07:54 PM. |
Thread Tools | Search this Thread |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
The answer to readers, tablets, CES 2011 & the Answer to the Universe | snipenekkid | News | 3 | 01-16-2011 04:41 AM |