Module: tags_js

Methods

(inner) addMusicbrainzFields(songObj, showArtists) → {HTMLElement}

Returns Links to MusicBrainz artist und album
Parameters:
Name Type Description
songObj object mpd song object
showArtists boolean true=show artists, false=show albumartists
Source:
Returns:
dom node with musicbrainz links
Type
HTMLElement

(inner) addTagList(elId, list) → {void}

Populates a container with buttons for tags
Parameters:
Name Type Description
elId string id of the element to populate
list string name of the taglist
Source:
Returns:
Type
void

(inner) addTagListSelect(elId, list) → {void}

Populates a select element with options for tags
Parameters:
Name Type Description
elId string id of the select to populate
list string name of the taglist
Source:
Returns:
Type
void

(inner) getDisplayTitle(name, title) → {string}

Combines name and title to display extm3u name
Parameters:
Name Type Description
name string name tag
title string title tag
Source:
Returns:
the title to display
Type
string
Returns a link to MusicBrainz
Parameters:
Name Type Description
tag string tag name
value string tag value
Source:
Returns:
a link or the value as text
Type
HTMLElement

(inner) isEmptyTag(tagValue) → {boolean}

Checks if tag is empty
Parameters:
Name Type Description
tagValue string | Array tag value to check
Source:
Returns:
true if tag matches value, else false
Type
boolean

(inner) parseBits(bits) → {string}

Parses the bits to the bitrate from mpd audioformat
Parameters:
Name Type Description
bits number bits to parse
Source:
Returns:
bitrate as string
Type
string

(inner) parseChannels(channels) → {string}

Parses the channels information from mpd audioformat
Parameters:
Name Type Description
channels number number of channels
Source:
Returns:
the parses number of channels as text
Type
string

(inner) printValue(key, value) → {Node}

Returns a tag value as dom element
Parameters:
Name Type Description
key string the tag type
value string | number | object the tag value
Source:
Returns:
the created node
Type
Node

(inner) selectTag(containerId, descId, setTo) → {void}

Marks a tag from a tag dropdown as active and sets the element with descId to its phrase
Parameters:
Name Type Description
containerId string container id (dropdown)
descId string id of the descriptive element
setTo string tag to select
Source:
Returns:
Type
void

(inner) setBrowseDatabaseAlbumListSortTags(list) → {Array}

Returns additional tags for the album list sort tag elements
Parameters:
Name Type Description
list string name of the taglist
Source:
Returns:
array of tags and descriptions
Type
Array