Module mpdpopm::playcounts
source · Expand description
playcounts – managing play counts & lastplayed times
Introduction
Play counts & last played timestamps are maintained so long as PlayState::update is called regularly (every few seconds, say). For purposes of library maintenance, however, they can be set explicitly:
setpc PLAYCOUNT( TRACK)?
setlp LASTPLAYED( TRACK)?
Structs
- Current server state in terms of the play status (stopped/paused/playing, current track, elapsed time in current track, &c)
Enums
Functions
- Retrieve the last played timestamp for a track (seconds since Unix epoch)
- Retrieve the play count for a track
- Set the last played for a track
- Set the play count for a track– this will run the associated command, if any