Simply opening a single track page registers a listen via the track preloading.
The playlists were built to be smarter and allow preloading, while registering a listen 10 seconds into playback. The playlist track calls a /listens callback — but that currently 404s — we need to register a listen there and make sure it's legit and can't be spammed.
Currently
Simply opening a single track page registers a listen via the track preloading.
The playlists were built to be smarter and allow preloading, while registering a listen 10 seconds into playback. The playlist track calls a
/listens
callback — but that currently 404s — we need to register a listen there and make sure it's legit and can't be spammed.https://github.com/sudara/alonetone/blob/master/app/controllers/playlists_controller.rb#L52