summary:Fetch the show logo. Returns the station logo if none exists
parameters:
- name:api_key
in:path
description:The API key to use for authentication
required:false
- name:id
in:path
description:The ID of the show with the logo to retrieve
required:true
/track:
get:
summary:Displays the metadata of a particular track
parameters:
- name:api_key
in:path
description:The API key to use for authentication
required:false
- name:id
in:path
description:The track id
required:true
- name:response
in:path
description:The type of response
schema:
enum:
- json
- artwork_data
- artwork
required:true
responses:
'200':
description:The 200 response
content:
application/json:
example:{
"MDATA_KEY_FILEPATH": "imported\/1\/Armin van Buuren\/Another You (feat. Mr. Probz)\/01 Another You (feat. Mr. Probz).mp3",
"MDATA_KEY_DIRECTORY": 1,
"MDATA_KEY_TITLE": "Another You (feat. Mr. Probz)",
"MDATA_KEY_CREATOR": "Armin van Buuren",
"MDATA_KEY_SOURCE": "Another You (feat. Mr. Probz)",
"MDATA_KEY_DURATION": "00:03:19.183673",
"MDATA_KEY_MIME": "audio\/mp3",
"MDATA_KEY_FTYPE": "audioclip",
"MDATA_KEY_URL": null,
"MDATA_KEY_GENRE": null,
"MDATA_KEY_MOOD": null,
"MDATA_KEY_LABEL": "Armin Audio B.V.",
"MDATA_KEY_COMPOSER": null,
"MDATA_KEY_DESCRIPTION": null,
"MDATA_KEY_SAMPLERATE": 44100,
"MDATA_KEY_BITRATE": 192000,
"MDATA_KEY_ENCODER": null,
"MDATA_KEY_ISRC": null,
"MDATA_KEY_COPYRIGHT": null,
"MDATA_KEY_YEAR": "2015",
"MDATA_KEY_BPM": null,
"MDATA_KEY_TRACKNUMBER": 1,
"MDATA_KEY_CONDUCTOR": null,
"MDATA_KEY_LANGUAGE": null,
"MDATA_KEY_REPLAYGAIN": "-8.36",
"MDATA_KEY_OWNER_ID": 1,
"MDATA_KEY_CUE_IN": "00:00:00",
"MDATA_KEY_CUE_OUT": "00:03:19.183673",
"MDATA_KEY_ARTWORK": "imported\/1\/artwork\/01 Another You (feat. Mr. Probz)"
}
/stream-m3u:
get:
summary:Returns m3u playlist file for the station's output stream
response:
'200':
description:The M3U file for the stream
content:application/x-mpegurl
/version:
get:
summary:Returns the current LibreTime and API versions
parameters:
- name:api_key
in:path
description:The API key to use for authentication
required:false
responses:
'200':
description:200response
content:
application/json:
example:{
"airtime_version": "3.0.0~alpha.5",
"api_version": "1.1"
}
/recorded-shows:
get:
summary:BROKEN - Unclear what this did, not implemented in ApiController
/calendar-init:
get:
summary:BROKEN - Unclear what this did, not implemented in ApiController
/upload-file:
get:
summary:BROKEN - Unclear what this did, not implemented in ApiController
/upload-recorded:
post:
summary:Upload a recorded show
parameters:
- name:showinstanceid
in:path
description:The ID of the show that was recorded
required:true
- name:fileid
in:path
description:The ID of the recorded file in the database
required:true
- name:api_key
in:path
description:The API key to use for authentication
required:true
/media-monitor-setup:
post:
summary:Initialises monitoring of media directories
parameters:
- name:api_key
in:path
description:The API key to use for authentication
required:true
/media-item-status:
get:
summary:BROKEN - Unclear what this did, not implemented in ApiController
parameters:
- name:api_key
in:path
description:The API key to use for authentication
required:true
/reload-metadata:
get:
summary:BROKEN - Unclear what this did, not implemented in ApiController
parameters:
- name:api_key
in:path
description:The API key to use for authentication
required:true
/list-all-files:
get:
summary:BROKEN - List all files in a given directory managed by LibreTime
parameters:
- name:dir_id
in:path
description:The directory to list files in
required:true
- name:all
in:path
description:|-
trueto show all files in the database, even if they do not exist
ondisk
required:false
- name:api_key
in:path
description:The API key to use for authentication
required:true
/list-all-watched-dirs:
get:
summary:|-
BROKEN (LT does not currently support watched files) - lists all
directories to watch for new files
parameters:
- name:api_key
in:path
description:The API key to use for authentication
required:true
/add-watched-dir:
post:
summary:|-
BROKEN (LT does not currently support watched files) - adds a directory
to the list of watched directories
parameters:
- name:path
in:path
description:the path of the directory on the server, base64 encoded
required:true
- name:api_key
in:path
description:The API key to use for authentication
required:true
/remove-watched-dir:
post:
summary:|-
BROKEN (LT does not currently support watched files) - removes a
directory from the list of watched directories
parameters:
- name:path
in:path
description:the path of the directory on the server, base64 encoded
required:true
- name:api_key
in:path
description:The API key to use for authentication
required:true
/set-storage-dir:
post:
summary:Sets the storage path for music files
parameters:
- name:path
in:path
description:The base64 encoded path to the new storage directory
required:true
- name:api_key
in:path
description:The API key to use for authentication
required:true
/get-stream-setting:
get:
summary:|-
BROKEN - Returns the settings configured for the four output Icecast
streams
parameters:
- name:api_key
in:path
description:The API key to use for authentication
required:true
/status:
get:
summary:|-
BROKEN - Returns the current status of the various LibreTime
components
parameters:
- name:api_key
in:path
description:The API key to use for authentication
required:true
/register-component:
post:
summary:Add a service component (for example Monit)
parameters:
- name:component
in:path
description:The component name to add
required:true
- name:api_key
in:path
description:The API key to use for authentication
required:true
/update-liquidsoap-status:
post:
summary:|-
Update the status of a stream to indicate a Liquidsoap status update
parameters:
- name:msg_post
in:path
description:The error message to use
required:true
- name:stream_id
in:path
description:The ID of the stream to update
required:true
- name:boot_time
description:|-
The time that the status was last updated. Excluding this will
force update.
required:false
- name:api_key
in:path
description:The API key to use for authentication
required:true
/update-file-system-mount:
post:
summary:|-
Handles additions/deletions of mount points on which watched
directories reside
parameters:
- name:added_dir
in:path
description:|-
A comma separated list of directories that were added to the system
required:false
- name:removed_dir
in:path
description:|-
A comma separated list of directories that were removed from the
system
required:false
- name:api_key
in:path
description:The API key to use for authentication
required:true
/handle-watched-dir-missing:
post:
summary:|-
BROKEN (LibreTime does not currentl handle watched directories) -
Handles missing watched directories.
parameters:
- name:dir
in:path
description:The directory to disable
required:true
- name:api_key
in:path
description:The API key to use for authentication
required:true
/rabbitmq-do-push:
post:
summary:|-
Used by dev scripts to make rabbitmq send out a message to pypo that a
potential change has been made to the database.
parameters:
- name:api_key
in:path
description:The API key to use for authentication
required:true
/check-live-stream-auth:
get:
summary:|-
Tests the authentication supplied to authenticate DJs connecting to a
live stream
parameters:
- name:api_key
in:path
description:The API key to use for authentication
required:true
requestBody:
required:true
content:
application/x-www-form-urlencoded:
schema:
type:object
properties:
username:
type:string
password:
type:string
format:password
djtype:
type:string
required:
- username
- password
- djtype
/update-source-status:
post:
summary:Update on source connect or disconnect
parameters:
- name:sourcename
in:path
description:|-
The name of the source that has connected or disconnected
- name:status
in:path
description:trueif the source is now connected
- name:api_key
in:path
description:The API key to use for authentication
required:true
/get-bootstrap-info:
get:
summary:|-
BROKEN - Retrieves the current state of the instance. This includes
which sources are currently connected, station name, etc
parameters:
- name:api_key
in:path
description:The API key to use for authentication
required:true
/get-files-without-replay-gain:
get:
summary:|-
BROKEN (returns all files) - Returns the files that do not have replay
gain set.
parameters:
- name:dir_id
in:path
description:The directory ID
- name:api_key
in:path
description:The API key to use for authentication
required:true
/get-files-without-silan-value:
get:
summary:Returns the files that have not been processed by silan
parameters:
- name:api_key
in:path
description:The API key to use for authentication
required:true
responses:
'200':
description:200response for default request
content:
application/json:
example:[
{
"id": 9,
"fp": "/srv/airtime/stor/"
},
{
"id": 12,
"fp": "/srv/airtime/stor/imported/1/Sam Smith Feat John Legend/The Official Uk Top 40 Singles Chart 03-22-2015/01 Sam Smith Feat John Legend - Lay Me Down.mp3"