Skip to main content
Module

x/listenbrainz/listen.ts

Deno library and CLI to access the ListenBrainz API
Latest
import * as listenbrainz from "https://deno.land/x/listenbrainz@v0.8.1/listen.ts";

Functions

Creates a clean copy of the given listen. Removes all properties which can not be contained in a submitted listen.

Formats the given duration in seconds as mm:ss.

Returns a string representation of the given listen (for logging).

Checks whether the given JSON is a listen.

Sets the submission client name and version for the given track, if it is not already set or if the overwrite flag is enabled.

Interfaces

Additional metadata an audio track can have.

MusicBrainz artist with credited name, MBID and join phrase.

Listen which has already been inserted into the database.

Event of listening to a certain track at certain time.

Track which has already been mapped to MBIDs by the server.

Mapping of a track to MusicBrainz identifiers.

Metadata of an audio track that was played.

Type Aliases

Listening data which can be submitted to the ListenBrainz API.

Uniquely identifiable listen of a user.