mirror of https://github.com/koreader/koreader
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
57188311da
Currently the progress sent to the server can be either a string or an int (depending on whetther the document has pages).
The following are both payload sent from koreader to the server.
```
{"percentage":0.005,"device":"device_name","device_id":"B78EA04ACC3A453DBA220D720C0BE102","document":"348e34463a44ba68659fc6fe814a6778","progress":3}
```
where document `348e34463a44ba68659fc6fe814a6778` is a pdf file.
```
{"percentage":1,"device":"device_name","device_id":"B78EA04ACC3A453DBA220D720C0BE102","document":"4eb484b229696cb39cd8fe5495aa1bbe","progress":"\/body\/DocFragment[30]\/body\/p\/img.0"}
```
where document `4eb484b229696cb39cd8fe5495aa1bbe` is an epub file.
This may add extra work to the backend server. A few commits were added to my personal fork of [kosyncsrv](https://github.com/yeeac/kosyncsrv) (a kosync backend server). kosyncsrv initially tries to decode progress as a string. It then failed on document with pages (in which, progress is just integer page number). I then change the field's type, only to [revert it later](
|
2 years ago | |
---|---|---|
.. | ||
SSH.koplugin | 3 years ago | |
autofrontlight.koplugin | 4 years ago | |
autostandby.koplugin | 3 years ago | |
autosuspend.koplugin | 2 years ago | |
autoturn.koplugin | 3 years ago | |
autowarmth.koplugin | 3 years ago | |
backgroundrunner.koplugin | 3 years ago | |
batterystat.koplugin | 2 years ago | |
bookshortcuts.koplugin | 2 years ago | |
calibre.koplugin | 2 years ago | |
coverbrowser.koplugin | 2 years ago | |
coverimage.koplugin | 2 years ago | |
docsettingtweak.koplugin | 2 years ago | |
exporter.koplugin | 2 years ago | |
gestures.koplugin | 2 years ago | |
hello.koplugin | 3 years ago | |
japanese.koplugin | 3 years ago | |
keepalive.koplugin | 3 years ago | |
kosync.koplugin | 2 years ago | |
movetoarchive.koplugin | 3 years ago | |
newsdownloader.koplugin | 2 years ago | |
opds.koplugin | 2 years ago | |
perceptionexpander.koplugin | 3 years ago | |
profiles.koplugin | 3 years ago | |
qrclipboard.koplugin | 4 years ago | |
readtimer.koplugin | 3 years ago | |
statistics.koplugin | 2 years ago | |
systemstat.koplugin | 3 years ago | |
terminal.koplugin | 2 years ago | |
texteditor.koplugin | 3 years ago | |
timesync.koplugin | 3 years ago | |
wallabag.koplugin | 2 years ago |