Skip to content

ScrobbleOptions

Defined in: src/types/track.ts:39

ExtendedBaseOptions

artist: string;

Defined in: src/types/track.ts:15

The artist name.

ExtendedBaseOptions.artist


optional chosenByUser?: boolean;

Defined in: src/types/track.ts:48

true if the user chose this song, or false if the song was chosen by someone else (such as a radio station or recommendation service).


optional duration?: number;

Defined in: src/types/track.ts:29

The length of the track in seconds.

ExtendedBaseOptions.duration


optional meta?: Record<string, unknown>;

Defined in: src/types/track.ts:33

Custom metadata for sessionExpire event.

ExtendedBaseOptions.meta


sk: string;

Defined in: src/types/track.ts:25

The Last.fm session key.

ExtendedBaseOptions.sk


timestamp: number;

Defined in: src/types/track.ts:44

The time the track started playing, in Unix timestamp format (integer number of seconds since 00:00:00, January 1st 1970 UTC). This must be in the UTC time zone.


track: string;

Defined in: src/types/track.ts:11

The track name.

ExtendedBaseOptions.track