Module: viewBrowsePlaylists_js

Methods

(inner) currentPlaylistAddTo(action) → {void}

Adds the currently displayed playlist to the queue or home screen
Parameters:
Name Type Description
action string one of appendQueue, appendPlayQueue, insertAfterCurrentQueue, replaceQueue, replacePlayQueue, addToHome
Source:
Returns:
Type
void

(inner) currentPlaylistDedup(remove) → {void}

Deduplicates the currently displayed playlist
Parameters:
Name Type Description
remove boolean true = remove invalid entries, false = count number of invalid entries
Source:
Returns:
Type
void

(inner) currentPlaylistEnumerate() → {void}

Enumerates the current displayed playlist
Source:
Returns:
Type
void

(inner) currentPlaylistMoveSong(from, to) → {void}

Moves a song in the current displayed playlist
Parameters:
Name Type Description
from number from position
to number to position
Source:
Returns:
Type
void

(inner) currentPlaylistShuffle() → {void}

Shuffles the playlist
Source:
Returns:
Type
void

(inner) currentPlaylistSort(tag, sortdesc) → {void}

Sorts the playlist by tag
Parameters:
Name Type Description
tag string sort tag
sortdesc boolean sort descending
Source:
Returns:
Type
void

(inner) currentPlaylistValidate(remove) → {void}

Validates the currently displayed playlist
Parameters:
Name Type Description
remove boolean true = remove invalid entries, false = count number of invalid entries
Source:
Returns:
Type
void

(inner) currentPlaylistValidateDedup(remove) → {void}

Validates and deduplicates the currently displayed playlist
Parameters:
Name Type Description
remove boolean true = remove invalid entries, false = count number of invalid entries
Source:
Returns:
Type
void

(inner) gotoPlaylist(uri) → {void}

Opens the playlist detail view
Parameters:
Name Type Description
uri string shows the playlist detail view
Source:
Returns:
Type
void

(inner) handleBrowsePlaylistDetail() → {void}

Handles BrowsePlaylistDetail
Source:
Returns:
Type
void

(inner) handleBrowsePlaylistList() → {void}

Handles BrowsePlaylistList
Source:
Returns:
Type
void

(inner) initViewPlaylist() → {void}

Initializes the playlist elements
Source:
Returns:
Type
void

(inner) parsePlaylistDetail(obj) → {void}

Parses the MYMPD_API_PLAYLIST_CONTENT_LIST jsonrpc response
Parameters:
Name Type Description
obj object jsonrpc response
Source:
Returns:
Type
void

(inner) parsePlaylistDetailUpdate(card, data) → {void}

Callback function for row or card
Parameters:
Name Type Description
card HTMLElement Row or card
data object Data object
Source:
Returns:
Type
void

(inner) parsePlaylistList(obj) → {void}

Parses the MYMPD_API_PLAYLIST_LIST jsonrpc response
Parameters:
Name Type Description
obj object jsonrpc response
Source:
Returns:
Type
void

(inner) parsePlaylistListUpdate(card, data) → {void}

Callback function for row or card
Parameters:
Name Type Description
card HTMLElement Row or card
data object Data object
Source:
Returns:
Type
void

(inner) setPlaylistDetailListFooter(entities, playtime) → {void}

Sets the footer text for the playlist content view
Parameters:
Name Type Description
entities number entity count
playtime number total playtime
Source:
Returns:
Type
void

(inner) showPlaylistSticker(event) → {void}

Shows the edit sticker modal for the current playlist
Parameters:
Name Type Description
event Event triggering click event
Source:
Returns:
Type
void

(inner) viewPlaylistDetailListClickHandler(event, target) → {void}

Click event handler for playlist detail list
Parameters:
Name Type Description
event MouseEvent click event
target HTMLElement calculated target
Source:
Returns:
Type
void

(inner) viewPlaylistListListClickHandler(event, target) → {void}

Click event handler for playlist list
Parameters:
Name Type Description
event MouseEvent click event
target HTMLElement calculated target
Source:
Returns:
Type
void