work.mattriley.listen

mattriley.work

Documentation

Singleton record holding the latest listened track.

main record

Singleton record holding the latest listened track.

Record Key literal:latest Fixed literal value

Properties

album string Optional

Album title, if known.

artist string Required

Artist name.

imageUrl string uri Optional

Album art URL.

listenedAt string datetime Optional

When the track was scrobbled. Absent while now playing.

nowPlaying boolean Optional

True when the track was playing at sync time.

source string Optional

Upstream source of the listen data (e.g. lastfm).

syncedAt string datetime Required

When this record was last synced from the upstream source.

track string Required

Track title.

url string uri Optional

Track URL on the upstream source.

View raw schema
{
  "key": "literal:latest",
  "type": "record",
  "record": {
    "type": "object",
    "required": [
      "track",
      "artist",
      "syncedAt"
    ],
    "properties": {
      "url": {
        "type": "string",
        "format": "uri",
        "description": "Track URL on the upstream source."
      },
      "album": {
        "type": "string",
        "description": "Album title, if known."
      },
      "track": {
        "type": "string",
        "description": "Track title."
      },
      "artist": {
        "type": "string",
        "description": "Artist name."
      },
      "source": {
        "type": "string",
        "description": "Upstream source of the listen data (e.g. lastfm)."
      },
      "imageUrl": {
        "type": "string",
        "format": "uri",
        "description": "Album art URL."
      },
      "syncedAt": {
        "type": "string",
        "format": "datetime",
        "description": "When this record was last synced from the upstream source."
      },
      "listenedAt": {
        "type": "string",
        "format": "datetime",
        "description": "When the track was scrobbled. Absent while now playing."
      },
      "nowPlaying": {
        "type": "boolean",
        "description": "True when the track was playing at sync time."
      }
    }
  },
  "description": "Singleton record holding the latest listened track."
}

Lexicon Garden

@