festival icon indicating copy to clipboard operation
festival copied to clipboard

Scrobble

Open hinto-janai opened this issue 9 months ago • 0 comments

Feature

There should be an analytics system (scrobbling) that tracks Song, Album and Artist listening data.

The values recorded could be either per second values or per full completion, a combination or something else.

The data could be used for various stuff, most likely just for stats and pretty charts showing listening behavior.

The struct used to represent Song's tracked should probably be in some least-common-denominator format like shukusai::playlist::Entry's or some variant of it. It should be able to be imported/exported easily as JSON (maybe following some scrobbling standard?)

Something like:

{
    "artist": "Artist Name",
    "album": "Album Title",
    "song": "Song Title",
    "second": 12321, // how many seconds listened
    "count": 100.35  // listen count, probably just $runtime / second
}

This would duplicate lots of data, and doesn't include total Album/Artist listen time so it should probably be nested.

hinto-janai avatar Sep 10 '23 21:09 hinto-janai