dmalikov / loh

[DEPRECATED] LastFMscrobbler on Haskell

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Document lohd protocol, please

supki opened this issue · comments

Someone might want to write non-standard loh client (with GUI, for example).
It would require protocol documentation, I don't think it's convenient to look lohd sources up for that.

Could lfmConfig JSON encoding be flattened?

Maybe it could be done with some wrapper types over haskell-liblastfm types.

Thanks!

You are welcome!

Why do we need totalSec and currentSec fields?
totalSec is apparently length of the track for now playing status?

Also, can you please rename
trackInfotrack
totalSeclength
tracktitle
currentSeccurrentTime (if that is needed actually)
lfmConfigauth

Seems like currentSec is redundant.
totalSec is optional for now playing status and scrobble, btw,

It would be better?

{
    "track": {
        "album": null,
        "title": "Sqoocka",
        "length": null,
        "artist": "Дмитрий Маликов"
    },
    "type": "Scrobble",
    "auth": {
        "secret": "c",
        "apiKey": "a",
        "sessionKey": "b"
    }
}

That's what I wanted.