Enable transcoding of downlods (#1667)
* feat(download): Enable transcoding of downlods - #573 Signed-off-by: Kendall Garner <17521368+kgarner7@users.noreply.github.com> * feat(download): Make automatic transcoding of downloads optional Signed-off-by: Kendall Garner <17521368+kgarner7@users.noreply.github.com> * Fix spelling * address changes * prettier * fix config * use previous name Signed-off-by: Kendall Garner <17521368+kgarner7@users.noreply.github.com>
This commit is contained in:
@@ -1,11 +1,17 @@
|
||||
export const ADD_TO_PLAYLIST_OPEN = 'ADD_TO_PLAYLIST_OPEN'
|
||||
export const ADD_TO_PLAYLIST_CLOSE = 'ADD_TO_PLAYLIST_CLOSE'
|
||||
export const DOWNLOAD_MENU_OPEN = 'DOWNLOAD_MENU_OPEN'
|
||||
export const DOWNLOAD_MENU_CLOSE = 'DOWNLOAD_MENU_CLOSE'
|
||||
export const DUPLICATE_SONG_WARNING_OPEN = 'DUPLICATE_SONG_WARNING_OPEN'
|
||||
export const DUPLICATE_SONG_WARNING_CLOSE = 'DUPLICATE_SONG_WARNING_CLOSE'
|
||||
export const EXTENDED_INFO_OPEN = 'EXTENDED_INFO_OPEN'
|
||||
export const EXTENDED_INFO_CLOSE = 'EXTENDED_INFO_CLOSE'
|
||||
export const LISTENBRAINZ_TOKEN_OPEN = 'LISTENBRAINZ_TOKEN_OPEN'
|
||||
export const LISTENBRAINZ_TOKEN_CLOSE = 'LISTENBRAINZ_TOKEN_CLOSE'
|
||||
export const DOWNLOAD_MENU_ALBUM = 'album'
|
||||
export const DOWNLOAD_MENU_ARTIST = 'artist'
|
||||
export const DOWNLOAD_MENU_PLAY = 'playlist'
|
||||
export const DOWNLOAD_MENU_SONG = 'song'
|
||||
|
||||
export const openAddToPlaylist = ({ selectedIds, onSuccess }) => ({
|
||||
type: ADD_TO_PLAYLIST_OPEN,
|
||||
@@ -17,6 +23,18 @@ export const closeAddToPlaylist = () => ({
|
||||
type: ADD_TO_PLAYLIST_CLOSE,
|
||||
})
|
||||
|
||||
export const openDownloadMenu = (record, recordType) => {
|
||||
return {
|
||||
type: DOWNLOAD_MENU_OPEN,
|
||||
recordType,
|
||||
record,
|
||||
}
|
||||
}
|
||||
|
||||
export const closeDownloadMenu = () => ({
|
||||
type: DOWNLOAD_MENU_CLOSE,
|
||||
})
|
||||
|
||||
export const openDuplicateSongWarning = (duplicateIds) => ({
|
||||
type: DUPLICATE_SONG_WARNING_OPEN,
|
||||
duplicateIds,
|
||||
|
||||
Reference in New Issue
Block a user