Interface Song

Represents a song entity in the system

interface Song {
    _id: string;
    album?: Album;
    artists?: Artist[];
    bitrate?: number;
    codec?: string;
    container?: string;
    date?: string;
    date_added?: number;
    deviceno?: string;
    duration: number;
    genre?: string[];
    hash?: string;
    icon?: string;
    inode?: string;
    lyrics?: string;
    path?: string;
    playbackUrl?: string;
    playCount?: number;
    providerExtension?: string;
    releaseType?: string[];
    sampleRate?: number;
    showInLibrary?: boolean;
    size?: number;
    song_coverPath_high?: string;
    song_coverPath_low?: string;
    title: string;
    track_no?: number;
    type: PlayerTypes;
    url?: string;
    year?: string | number;
}

Properties

_id: string

Unique identifier for the song

album?: Album

Album information

artists?: Artist[]

Artists associated with the song

bitrate?: number

Bitrate of the song in kbps

codec?: string

Audio codec used

container?: string

Container format

date?: string

Release date of the song

date_added?: number

Date when the song was added to the library

deviceno?: string

Device number (for local files)

duration: number

Duration of the song in seconds

genre?: string[]

Genres associated with the song

hash?: string

MD5 hash of the file

icon?: string

Icon representing the song or its source

inode?: string

Inode number (for local files)

lyrics?: string

Lyrics of the song

path?: string

File path of the song

playbackUrl?: string

URL specifically for playback

playCount?: number

Number of times the song has been played

providerExtension?: string

Extension providing this song

releaseType?: string[]

Type of release (e.g., single, album)

sampleRate?: number

Sample rate in Hz

showInLibrary?: boolean

Whether the song should be shown in the library

size?: number

File size in bytes

song_coverPath_high?: string

High resolution cover art path

song_coverPath_low?: string

Low resolution cover art path

title: string

Title of the song

track_no?: number

Track number in its album

Type of player required for this song

url?: string

URL for streaming the song

year?: string | number

Release year of the song