playlist_single

🟢 Stable

This API is stable since festivald v1.0.0.


Retrieve a single Playlist.

This method errors if playlist does not exist.

Inputs

FieldTypeDescription
playliststringThe name of the Playlist

Outputs

FieldTypeDescription
playliststringThe name of the Playlist
all_validbooleanIf all the Playlist Entry's are valid
entry_lenunsigned integerHow many Playlist Entry's there are in this Playlist
valid_lenunsigned integerHow many Playlist Entry's are valid
invalid_lenunsigned integerHow many Playlist Entry's are invalid
entriesarray of Playlist Entry objectsThe Playlist Entry's of the Playlist

Example Request

festival-cli playlist_single --playlist Hello 
curl http://localhost:18425 -d '{"jsonrpc":"2.0","id":0,"method":"playlist_single","params":{"playlist":"Hello"}}'

Example Response

{
  "jsonrpc": "2.0",
  "result": {
    "playlist": "Hello",
    "all_valid": false,
    "entry_len": 2,
    "valid_len": 1,
    "invalid_len": 1,
    "entries": [
      {
        "invalid": {
          "artist": "Artist Name",
          "album": "Album Title",
          "song": "Song Title"
        }
      },
      {
        "valid": {
          "key_artist": 46,
          "key_album": 168,
          "key_song": 1762,
          "artist": "Artist Name",
          "album": "Album Title",
          "song": "Song Title"
        }
      }
    ]
  },
  "id": 0
}