Skip to content

Search

Kubat a demandé de fusionner search vers master

Implement search functions with lkt to be able to query the database. Also closes #24 (closed)

TODO list

To do this, we will make changes in lektord and lkt:

  • rework of callbacks.
  • make this thing compiling again
  • implements the continue statement as it is specified latter.
  • modify lkt to use the new commands and functionalities.
  • modify search functions to take into account the continuation state.

Continue mechanisme

The client can send an integer from the continue: <integer > 0> before a command to continue where lektord left. This integer must have been send by lektord previously. When lektord sends incomplete results for a command, it ends its transition with:

continue: <integer > 0>
OK/ACK

If the status is ACK, the client must ignore the continue statement, otherwise it can use this integer only once, because its signification can change. Most of the time it will be an offset to pass to a sqlite query but can be anything else.

Note that the server can send multiple times the same integer.

Example

  • lkt to lektord: playlist 20
  • lektord to lkt: continue: 14
  • lkt to lektord: 14 playlist 20
Modification effectuée par Kubat

Rapports de requête de fusion

Chargement en cours