2
0
mirror of https://github.com/koreader/koreader synced 2024-10-31 21:20:20 +00:00
koreader/plugins
contrun 57188311da
kosync: send progress as a string to the server (#8758)
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](8a642e31a0).

I believe it is more appropriate for us to fix the progress type to string.
2022-02-20 16:08:56 +01:00
..
autofrontlight.koplugin Tame BackgroundRunner: stop running when no more job (#6605) 2020-08-31 16:48:29 +02:00
autostandby.koplugin SpinWidget: similar size in portrait and landscape (#8226) 2021-09-25 10:40:04 +02:00
autosuspend.koplugin Autosuspend: fix 'Disable' not disabling (#8684) 2022-01-19 14:02:09 +01:00
autoturn.koplugin DeviceMenu: Colons and more information (#8435) 2021-11-23 21:17:07 +01:00
autowarmth.koplugin Fix unused variable (#8518) 2021-12-05 22:14:00 +01:00
backgroundrunner.koplugin Minor Input & TimeVal cleanups 2021-04-16 22:12:15 +02:00
batterystat.koplugin Battery Stat: for real (#8694) 2022-01-19 18:31:58 +01:00
bookshortcuts.koplugin BookShortcuts: fix folders handling (#8795) 2022-02-15 12:04:07 +02:00
calibre.koplugin [chore] Remove leftover: cface (#8659) 2022-01-12 13:32:03 +01:00
coverbrowser.koplugin CoverBrowser: use translations for error messages 2022-01-19 12:23:38 +01:00
coverimage.koplugin [Coverimage, plugin] Clean up, typo (#8565) 2021-12-25 11:29:57 +01:00
docsettingtweak.koplugin [plugin] DocSettingTweak: disable on NT devices (#8599) 2022-01-02 11:58:01 +01:00
exporter.koplugin exporter plugin: fix history dir (#8685) 2022-01-19 17:12:53 +01:00
gestures.koplugin gestures: free long-press on FM home button 2022-02-19 22:04:12 +01:00
hello.koplugin Dispatcher: Revamp sections and item order 2021-09-13 10:56:06 -04:00
japanese.koplugin *: luacheck fixes (#8368) 2021-10-24 10:58:14 +02:00
keepalive.koplugin Use PluginShare to share the keepalive state (#7416) 2021-03-17 15:00:34 -07:00
kosync.koplugin kosync: send progress as a string to the server (#8758) 2022-02-20 16:08:56 +01:00
movetoarchive.koplugin ReaderUI: Saner FM/RD lifecycle 2021-05-05 20:37:33 +02:00
newsdownloader.koplugin NewsDownloader: add support for RDF feeds (#8822) 2022-02-20 09:17:59 +01:00
opds.koplugin Cloud storage: enhance download dialog, fix Dropbox uploading (#8809) 2022-02-17 10:53:15 +01:00
perceptionexpander.koplugin Input dialogs: keep size in rotation (#8223) 2021-09-17 19:36:57 +02:00
profiles.koplugin Autostart Profiles (#8049) 2021-08-15 13:25:19 +02:00
qrclipboard.koplugin [fix] Minor doc touchups re. QR encode (#6861) 2020-11-09 09:17:11 +01:00
readtimer.koplugin DateTimeWidget: replaces DateWidget and TimeWidget (#8240) 2021-09-25 19:59:45 +02:00
SSH.koplugin Dispatcher: Revamp sections and item order 2021-09-13 10:56:06 -04:00
statistics.koplugin ReaderProgress: insert TitleBar 2022-02-02 17:05:28 +01:00
systemstat.koplugin Dispatcher: add Battery & System statistics 2021-09-01 10:30:46 -04:00
terminal.koplugin [plugin] Terminal: move stray newlines outside of translated string (#8830) 2022-02-20 16:08:23 +01:00
texteditor.koplugin SpinWidget: similar size in portrait and landscape (#8226) 2021-09-25 10:40:04 +02:00
timesync.koplugin Cleanup eye-gouging madness around io.read calls (#7149) 2021-01-16 04:41:46 +01:00
wallabag.koplugin wallabag : fixes synchronization when "send review as tags" is checked (#8733) 2022-01-27 21:27:38 +01:00