2016-10-14 22:42:45 +13:00
|
|
|
|
2016-11-16 16:30:49 +13:00
|
|
|
import * as helpers from '../../helpers'
|
2016-10-14 22:42:45 +13:00
|
|
|
|
2018-06-10 10:02:31 +12:00
|
|
|
export function set(data){
|
|
|
|
|
return {
|
|
|
|
|
type: 'MOPIDY_SET',
|
|
|
|
|
data: data
|
|
|
|
|
}
|
2016-10-14 22:42:45 +13:00
|
|
|
}
|
|
|
|
|
|
2018-10-17 21:33:54 +13:00
|
|
|
export function request(method, params = {}, response_callback = null, error_callback = null){
|
2018-09-24 16:10:42 +12:00
|
|
|
return {
|
|
|
|
|
type: 'MOPIDY_REQUEST',
|
|
|
|
|
method: method,
|
|
|
|
|
params: params,
|
|
|
|
|
response_callback: response_callback,
|
|
|
|
|
error_callback: error_callback
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2016-10-18 21:57:29 +13:00
|
|
|
export function connect(){
|
2016-10-14 22:42:45 +13:00
|
|
|
return {
|
2016-10-18 21:57:29 +13:00
|
|
|
type: 'MOPIDY_CONNECT'
|
2016-10-16 12:37:37 +13:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2018-04-17 15:58:39 +12:00
|
|
|
export function connecting(){
|
|
|
|
|
return {
|
|
|
|
|
type: 'MOPIDY_CONNECTING'
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2018-11-02 16:10:38 +13:00
|
|
|
export function disconnect(){
|
2018-04-17 15:58:39 +12:00
|
|
|
return {
|
2018-11-02 16:10:38 +13:00
|
|
|
type: 'MOPIDY_DISCONNECT'
|
2018-04-17 15:58:39 +12:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2018-11-02 16:10:38 +13:00
|
|
|
export function debug(call, value){
|
2018-04-17 15:58:39 +12:00
|
|
|
return {
|
2018-11-02 16:10:38 +13:00
|
|
|
type: 'MOPIDY_DEBUG',
|
|
|
|
|
call: call,
|
|
|
|
|
value: value
|
2018-04-17 15:58:39 +12:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2018-11-02 16:10:38 +13:00
|
|
|
export function restartStarted(){
|
2016-10-18 08:56:53 +13:00
|
|
|
return {
|
2018-11-02 16:10:38 +13:00
|
|
|
type: 'MOPIDY_RESTART_STARTED'
|
2016-10-18 08:56:53 +13:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2018-11-02 16:10:38 +13:00
|
|
|
export function restartFinished(){
|
2016-12-05 10:20:01 +13:00
|
|
|
return {
|
2018-11-02 16:10:38 +13:00
|
|
|
type: 'MOPIDY_RESTART_FINISHED'
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export function upgradeStarted(){
|
|
|
|
|
return {
|
|
|
|
|
type: 'MOPIDY_UPGRADE_STARTED'
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export function upgradeFinished(){
|
|
|
|
|
return {
|
|
|
|
|
type: 'MOPIDY_UPGRADE_FINISHED'
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export function localScanStarted(){
|
|
|
|
|
return {
|
|
|
|
|
type: 'MOPIDY_LOCAL_SCAN_STARTED'
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export function localScanFinished(){
|
|
|
|
|
return {
|
|
|
|
|
type: 'MOPIDY_LOCAL_SCAN_FINISHED'
|
2016-12-05 10:20:01 +13:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2018-02-26 10:25:56 +13:00
|
|
|
/**
|
|
|
|
|
* Core play actions
|
|
|
|
|
**/
|
|
|
|
|
|
|
|
|
|
export function getPlayState(){
|
|
|
|
|
return {
|
|
|
|
|
type: 'MOPIDY_GET_PLAY_STATE'
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export function play(){
|
|
|
|
|
return {
|
|
|
|
|
type: 'MOPIDY_PLAY'
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export function pause(){
|
|
|
|
|
return {
|
|
|
|
|
type: 'MOPIDY_PAUSE'
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export function stop(){
|
|
|
|
|
return {
|
2018-04-20 08:08:54 +12:00
|
|
|
type: 'MOPIDY_STOP'
|
2018-02-26 10:25:56 +13:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export function next(){
|
|
|
|
|
return {
|
|
|
|
|
type: 'MOPIDY_NEXT'
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export function previous(){
|
|
|
|
|
return {
|
|
|
|
|
type: 'MOPIDY_PREVIOUS'
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export function getMute(){
|
|
|
|
|
return {
|
|
|
|
|
type: 'MOPIDY_GET_MUTE'
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export function setMute(mute){
|
|
|
|
|
return {
|
|
|
|
|
type: 'MOPIDY_SET_MUTE',
|
|
|
|
|
mute: mute
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export function getVolume(){
|
|
|
|
|
return {
|
|
|
|
|
type: 'MOPIDY_GET_VOLUME'
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export function setVolume(volume){
|
|
|
|
|
return {
|
|
|
|
|
type: 'MOPIDY_SET_VOLUME',
|
|
|
|
|
volume: volume
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export function getConsume(){
|
|
|
|
|
return {
|
|
|
|
|
type: 'MOPIDY_GET_CONSUME'
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export function setConsume(consume){
|
|
|
|
|
return {
|
|
|
|
|
type: 'MOPIDY_SET_CONSUME',
|
|
|
|
|
consume: consume
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export function getRepeat(){
|
|
|
|
|
return {
|
|
|
|
|
type: 'MOPIDY_GET_REPEAT'
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export function setRepeat(repeat){
|
|
|
|
|
return {
|
|
|
|
|
type: 'MOPIDY_SET_REPEAT',
|
|
|
|
|
repeat: repeat
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export function getRandom(){
|
|
|
|
|
return {
|
|
|
|
|
type: 'MOPIDY_GET_RANDOM'
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export function setRandom(random){
|
|
|
|
|
return {
|
|
|
|
|
type: 'MOPIDY_SET_RANDOM',
|
|
|
|
|
random: random
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2018-03-02 08:49:34 +13:00
|
|
|
export function getTimePosition(){
|
2018-02-26 10:25:56 +13:00
|
|
|
return {
|
2018-03-02 08:49:34 +13:00
|
|
|
type: 'MOPIDY_GET_TIME_POSITION'
|
2018-02-26 10:25:56 +13:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2018-03-02 08:49:34 +13:00
|
|
|
export function setTimePosition(time_position){
|
2018-02-26 10:25:56 +13:00
|
|
|
return {
|
2018-03-02 08:49:34 +13:00
|
|
|
type: 'MOPIDY_SET_TIME_POSITION',
|
|
|
|
|
time_position: parseInt(time_position)
|
2018-02-26 10:25:56 +13:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2018-03-02 08:07:30 +13:00
|
|
|
export function timePosition(time_position){
|
2018-02-26 10:25:56 +13:00
|
|
|
return {
|
2018-03-02 08:07:30 +13:00
|
|
|
type: 'MOPIDY_TIME_POSITION',
|
2018-03-02 08:49:34 +13:00
|
|
|
time_position: parseInt(time_position)
|
2018-02-26 10:25:56 +13:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export function getUriSchemes(){
|
|
|
|
|
return {
|
|
|
|
|
type: 'MOPIDY_GET_URI_SCHEMES'
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
2016-10-21 23:27:50 +13:00
|
|
|
|
|
|
|
|
/**
|
2018-02-26 10:25:56 +13:00
|
|
|
* Advanced playback actions
|
2016-10-21 23:27:50 +13:00
|
|
|
**/
|
|
|
|
|
|
2018-02-26 10:25:56 +13:00
|
|
|
export function getCurrentTrack(){
|
|
|
|
|
return {
|
|
|
|
|
type: 'MOPIDY_GET_CURRENT_TRACK'
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2018-04-12 15:55:39 +12:00
|
|
|
export function currentTrackLoaded(tl_track){
|
2018-04-11 16:44:41 +12:00
|
|
|
return {
|
2018-04-12 15:55:39 +12:00
|
|
|
type: 'MOPIDY_CURRENT_TRACK_LOADED',
|
|
|
|
|
tl_track: tl_track
|
2018-04-11 16:44:41 +12:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2018-04-12 15:55:39 +12:00
|
|
|
export function getNextTrack(){
|
2018-04-01 22:06:02 +12:00
|
|
|
return {
|
2018-04-12 15:55:39 +12:00
|
|
|
type: 'MOPIDY_GET_NEXT_TRACK'
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export function clearCurrentTrack(){
|
|
|
|
|
return {
|
2018-04-23 08:13:24 +12:00
|
|
|
type: 'CLEAR_CURRENT_TRACK'
|
2018-04-01 22:06:02 +12:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2018-02-26 10:25:56 +13:00
|
|
|
export function getQueue(){
|
|
|
|
|
return {
|
|
|
|
|
type: 'MOPIDY_GET_QUEUE'
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2017-10-10 13:05:28 +13:00
|
|
|
export function changeTrack(tlid){
|
2018-02-25 17:24:24 +13:00
|
|
|
return {
|
|
|
|
|
type: 'MOPIDY_CHANGE_TRACK',
|
|
|
|
|
tlid: tlid
|
|
|
|
|
}
|
2016-10-16 12:37:37 +13:00
|
|
|
}
|
|
|
|
|
|
2017-05-05 03:56:55 +12:00
|
|
|
export function playURIs(uris, from_uri = null){
|
2016-10-19 14:09:34 +13:00
|
|
|
return {
|
2016-11-18 08:29:13 +13:00
|
|
|
type: 'MOPIDY_PLAY_URIS',
|
2017-02-14 20:24:35 +13:00
|
|
|
uris: uris,
|
|
|
|
|
from_uri: from_uri
|
2016-10-20 21:38:01 +13:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2017-05-07 09:29:18 +12:00
|
|
|
export function enqueueURIs(uris, from_uri = null, next = false, at_position = null, offset = 0){
|
2016-10-20 21:38:01 +13:00
|
|
|
return {
|
2017-02-14 20:24:35 +13:00
|
|
|
type: 'MOPIDY_ENQUEUE_URIS',
|
|
|
|
|
uris: uris,
|
|
|
|
|
at_position: at_position,
|
2017-04-04 21:21:44 +12:00
|
|
|
next: next,
|
2017-05-07 09:29:18 +12:00
|
|
|
from_uri: from_uri,
|
|
|
|
|
offset: offset
|
2016-10-19 14:09:34 +13:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2017-05-05 03:56:55 +12:00
|
|
|
export function enqueueURIsBatchDone(){
|
|
|
|
|
return {
|
|
|
|
|
type: 'MOPIDY_ENQUEUE_URIS_BATCH_DONE'
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2018-06-26 08:51:11 +12:00
|
|
|
export function playPlaylist(uri, shuffle = false){
|
2017-04-07 10:33:54 +12:00
|
|
|
return {
|
|
|
|
|
type: 'MOPIDY_PLAY_PLAYLIST',
|
2018-06-26 08:51:11 +12:00
|
|
|
uri: uri,
|
|
|
|
|
shuffle: shuffle
|
2017-04-07 10:33:54 +12:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export function playAlbum(uri){
|
|
|
|
|
return {
|
|
|
|
|
type: 'MOPIDY_PLAY_ALBUM',
|
|
|
|
|
uri: uri
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2017-10-10 13:05:28 +13:00
|
|
|
export function removeTracks(tlids){
|
2018-02-25 17:24:24 +13:00
|
|
|
return {
|
|
|
|
|
type: 'MOPIDY_REMOVE_TRACKS',
|
|
|
|
|
tlids: tlids
|
|
|
|
|
}
|
2016-10-14 22:42:45 +13:00
|
|
|
}
|
|
|
|
|
|
2017-10-10 13:05:28 +13:00
|
|
|
export function reorderTracklist(indexes, insert_before){
|
|
|
|
|
var range = helpers.createRange(indexes );
|
|
|
|
|
if (insert_before > range.start ) insert_before = insert_before - range.length
|
2016-11-16 16:30:49 +13:00
|
|
|
return {
|
|
|
|
|
type: 'MOPIDY_REORDER_TRACKLIST',
|
|
|
|
|
range_start: range.start,
|
|
|
|
|
range_length: range.length,
|
|
|
|
|
insert_before: insert_before
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2017-01-22 12:54:20 +13:00
|
|
|
export function clearTracklist(){
|
2018-03-25 10:20:17 +13:00
|
|
|
return {
|
|
|
|
|
type: 'MOPIDY_CLEAR_TRACKLIST'
|
|
|
|
|
}
|
2017-01-22 12:54:20 +13:00
|
|
|
}
|
|
|
|
|
|
2016-10-21 23:27:50 +13:00
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Asset-oriented actions
|
|
|
|
|
**/
|
|
|
|
|
|
2017-10-10 13:05:28 +13:00
|
|
|
export function getImages(context, uris){
|
2017-08-03 15:26:54 +12:00
|
|
|
return {
|
|
|
|
|
type: 'MOPIDY_GET_IMAGES',
|
|
|
|
|
context: context,
|
|
|
|
|
uris: uris
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2017-08-22 20:44:36 +12:00
|
|
|
export function createPlaylist(name, scheme){
|
|
|
|
|
return {
|
|
|
|
|
type: 'MOPIDY_CREATE_PLAYLIST',
|
|
|
|
|
name: name,
|
|
|
|
|
scheme: scheme
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2017-10-10 13:05:28 +13:00
|
|
|
export function deletePlaylist(uri){
|
2016-11-14 11:20:02 +13:00
|
|
|
return {
|
|
|
|
|
type: 'MOPIDY_DELETE_PLAYLIST',
|
|
|
|
|
uri: uri
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2017-01-13 13:17:47 +13:00
|
|
|
export function getLibraryPlaylists(){
|
|
|
|
|
return { type: 'MOPIDY_GET_LIBRARY_PLAYLISTS' }
|
2016-10-21 23:27:50 +13:00
|
|
|
}
|
|
|
|
|
|
2017-10-10 13:05:28 +13:00
|
|
|
export function getPlaylist(uri){
|
2016-11-02 16:51:00 +13:00
|
|
|
return {
|
2017-01-13 13:17:47 +13:00
|
|
|
type: 'MOPIDY_GET_PLAYLIST',
|
2016-11-02 16:51:00 +13:00
|
|
|
data: { uri: uri }
|
2016-11-01 07:37:18 +13:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2017-08-13 21:42:19 +12:00
|
|
|
export function getPlaylists(uris, processor = null){
|
|
|
|
|
return {
|
|
|
|
|
type: 'MOPIDY_GET_PLAYLISTS',
|
|
|
|
|
uris: uris,
|
|
|
|
|
processor: processor
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2017-10-10 13:05:28 +13:00
|
|
|
export function getDirectory(uri){
|
2016-11-01 11:49:04 +13:00
|
|
|
return {
|
2017-01-13 13:17:47 +13:00
|
|
|
type: 'MOPIDY_GET_DIRECTORY',
|
2017-07-07 08:25:58 +12:00
|
|
|
data: { uri: uri }
|
2016-11-01 11:49:04 +13:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2017-10-10 13:05:28 +13:00
|
|
|
export function getTrack(uri){
|
2017-10-10 11:50:29 +13:00
|
|
|
return {
|
|
|
|
|
type: 'MOPIDY_GET_TRACK',
|
|
|
|
|
data: { uri: uri }
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2018-10-16 21:21:36 +13:00
|
|
|
export function getLibraryArtists(uri = null){
|
2017-08-13 21:42:19 +12:00
|
|
|
return {
|
2018-10-16 21:21:36 +13:00
|
|
|
type: 'MOPIDY_GET_LIBRARY_ARTISTS',
|
|
|
|
|
uri: uri
|
2017-08-13 21:42:19 +12:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2018-06-10 10:02:31 +12:00
|
|
|
export function clearLibraryArtists(){
|
|
|
|
|
return {
|
|
|
|
|
type: 'MOPIDY_CLEAR_LIBRARY_ARTISTS'
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2017-10-10 13:05:28 +13:00
|
|
|
export function getArtist(uri){
|
2016-11-01 16:41:04 +13:00
|
|
|
return {
|
2017-01-13 13:17:47 +13:00
|
|
|
type: 'MOPIDY_GET_ARTIST',
|
2016-11-01 16:41:04 +13:00
|
|
|
data: { uri: uri }
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2017-08-13 21:42:19 +12:00
|
|
|
export function getArtists(uris, processor = null){
|
2016-11-01 19:27:59 +13:00
|
|
|
return {
|
2017-08-13 21:42:19 +12:00
|
|
|
type: 'MOPIDY_GET_ARTISTS',
|
|
|
|
|
uris: uris,
|
|
|
|
|
processor: processor
|
2016-11-01 19:27:59 +13:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2017-10-10 13:05:28 +13:00
|
|
|
export function getAlbum(uri){
|
2017-01-15 21:06:24 +13:00
|
|
|
return {
|
|
|
|
|
type: 'MOPIDY_GET_ALBUM',
|
|
|
|
|
data: { uri: uri }
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2017-08-10 12:00:08 +12:00
|
|
|
export function getAlbums(uris, processor = null){
|
2016-11-02 16:51:00 +13:00
|
|
|
return {
|
2017-01-26 08:51:35 +13:00
|
|
|
type: 'MOPIDY_GET_ALBUMS',
|
2017-08-10 12:00:08 +12:00
|
|
|
uris: uris,
|
|
|
|
|
processor: processor
|
2017-01-26 08:51:35 +13:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2018-10-16 21:21:36 +13:00
|
|
|
export function getLibraryAlbums(uri = null){
|
2017-01-26 08:51:35 +13:00
|
|
|
return {
|
2018-10-16 21:21:36 +13:00
|
|
|
type: 'MOPIDY_GET_LIBRARY_ALBUMS',
|
|
|
|
|
uri: uri
|
2016-11-02 16:51:00 +13:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2018-06-10 10:02:31 +12:00
|
|
|
export function clearLibraryAlbums(){
|
|
|
|
|
return {
|
|
|
|
|
type: 'MOPIDY_CLEAR_LIBRARY_ALBUMS'
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2017-08-10 12:00:08 +12:00
|
|
|
export function runProcessor(processor){
|
|
|
|
|
return {
|
|
|
|
|
type: processor
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export function cancelProcessor(processor){
|
|
|
|
|
return {
|
|
|
|
|
type: processor+'_CANCEL'
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2016-11-06 18:29:49 +13:00
|
|
|
|
|
|
|
|
/**
|
2017-03-24 23:05:43 +13:00
|
|
|
* Searching
|
2016-11-06 18:29:49 +13:00
|
|
|
**/
|
|
|
|
|
|
2017-09-05 08:26:04 +12:00
|
|
|
export function clearSearchResults(){
|
|
|
|
|
return {
|
|
|
|
|
type: 'MOPIDY_CLEAR_SEARCH_RESULTS'
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2017-09-04 08:17:28 +12:00
|
|
|
export function getSearchResults(context, query, limit = 100){
|
2016-11-06 18:29:49 +13:00
|
|
|
return {
|
2017-09-04 08:17:28 +12:00
|
|
|
type: 'MOPIDY_GET_SEARCH_RESULTS',
|
|
|
|
|
context: context,
|
2017-03-24 23:05:43 +13:00
|
|
|
query: query,
|
2017-09-04 08:17:28 +12:00
|
|
|
limit: limit
|
2017-03-24 23:05:43 +13:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Other general actions
|
|
|
|
|
**/
|
|
|
|
|
|
2017-02-10 09:06:41 +13:00
|
|
|
export function getQueueHistory(){
|
2018-02-26 10:25:56 +13:00
|
|
|
return {
|
2018-03-02 08:07:30 +13:00
|
|
|
type: 'MOPIDY_GET_QUEUE_HISTORY'
|
2018-02-26 10:25:56 +13:00
|
|
|
}
|
2017-02-10 09:06:41 +13:00
|
|
|
}
|
2016-11-07 18:09:42 +13:00
|
|
|
|