View Single Post
Old 05-24-2020, 04:19 PM   #1
pazos
cosiņeiro
pazos ought to be getting tired of karma fortunes by now.pazos ought to be getting tired of karma fortunes by now.pazos ought to be getting tired of karma fortunes by now.pazos ought to be getting tired of karma fortunes by now.pazos ought to be getting tired of karma fortunes by now.pazos ought to be getting tired of karma fortunes by now.pazos ought to be getting tired of karma fortunes by now.pazos ought to be getting tired of karma fortunes by now.pazos ought to be getting tired of karma fortunes by now.pazos ought to be getting tired of karma fortunes by now.pazos ought to be getting tired of karma fortunes by now.
 
Posts: 1,406
Karma: 2451781
Join Date: Apr 2014
Device: BQ Cervantes 4
Smart Device App questions

Hi. I'm playing a bit with the API of "smart device app" to improve KOReader wirelessly connection with calibre. So far so good but I have a couple of questions related to free space on disk:

1. It seems that the smart device app ignores reported free space. It does not raise FreeSpaceError as indicated in https://github.com/kovidgoyal/calibr...erface.py#L389

2. I can live with (1) because calibre reports the length in bytes of each file, so I can compare it with device free space. I don't know if there's a way to tell calibre that one or more specific files were not received by the client.

In the best case scenario I would want the server to report issues like "connect to folder" device is doing (in attachment) but I'm fine if the server doesn't report any error as long as it could report the files already on-device.

This is my first attempt to look at calibre/python code. Please forgive me if I mis something obvious. Also please forgive my english. I hope my question can be understood.
Attached Thumbnails
Click image for larger version

Name:	2020-05-24_22-03.png
Views:	219
Size:	21.8 KB
ID:	179486  
pazos is offline   Reply With Quote