hibearnate-liquidsoap

1.1.0 • Public • Published

hiBEARnate-liquidsoap

hiBEARnate-liquidsoap is a supporting package for the hiBEARnate server.

For more information on hiBEARnate, you can find us on seriousbears.net or #seriousbears on quakenet.

To install:

npm install hibearnate-liquidsoap

This library provides several functions:

  • getMetadata(id, callback(responseJSON))

A numeric ID is passed, at which point a JSON object containing metadata about that ID is returned.

  • getLiquidsoapData(command, callback(responseData))

A command is passed and executed against Liquidsoap's telnet server. Any response data returned by the telnet server is cleaned up (to remove extra line breaks, "END" token, etc.) and returned as the first parameter of the callback.

  • getOnAirMetadata(command, callback(responseJSON))

A query is made against Liquidsoap, returning the metadata tags for the currently playing file. Unlike the getMetadata call, this does not return things like where the audio is coming from, when it started playing, its request ID, etc.

Changelog:

v1.1.0 (2015-09-21)

  • Refined changes from 1.0.3-4 into a new exported function: getOnAirMetadata. This call returns a TagObject containing a list of ID3 (or similiar) tags from the audio that is currently playing.
  • The object returned by getMetadata has been modified to include the tags as a separate pproperty.

v1.0.4 (2015-09-20)

  • Fix for an issue when calling back with the name of the currently-streaming DJ

v1.0.3 (2015-09-20)

  • Added a function to get the ID of the currently-streaming DJ.

v1.0.2 (2015-09-19)

  • Fixed a bug with logging the name of the environment when the module starts up.

v1.0.1 (2015-09-19)

  • Attempting to fix a require issue where the module can't be found.

v1.0.0 (2015-09-19)

  • Broke Liquidsoap functions out into a separate module installable with npm. This is an attempt to get the whole of hiBEARnate to be a little easier to maintain!

Readme

Keywords

none

Package Sidebar

Install

npm i hibearnate-liquidsoap

Weekly Downloads

1

Version

1.1.0

License

AGPL-3.0

Last publish

Collaborators

  • nullfunction