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:
@@ -18,8 +18,9 @@ import {
|
||||
playTracks,
|
||||
shuffleTracks,
|
||||
openAddToPlaylist,
|
||||
openDownloadMenu,
|
||||
DOWNLOAD_MENU_ALBUM,
|
||||
} from '../actions'
|
||||
import subsonic from '../subsonic'
|
||||
import { formatBytes } from '../utils'
|
||||
import { useMediaQuery, makeStyles } from '@material-ui/core'
|
||||
import config from '../config'
|
||||
@@ -64,8 +65,8 @@ const AlbumActions = ({
|
||||
}, [dispatch, ids])
|
||||
|
||||
const handleDownload = React.useCallback(() => {
|
||||
subsonic.download(record.id)
|
||||
}, [record])
|
||||
dispatch(openDownloadMenu(record, DOWNLOAD_MENU_ALBUM))
|
||||
}, [dispatch, record])
|
||||
|
||||
return (
|
||||
<TopToolbar className={className} {...sanitizeListRestProps(rest)}>
|
||||
|
||||
@@ -28,6 +28,7 @@ import { AddToPlaylistDialog } from '../dialogs'
|
||||
import albumLists, { defaultAlbumList } from './albumLists'
|
||||
import config from '../config'
|
||||
import AlbumInfo from './AlbumInfo'
|
||||
import DownloadMenuDialog from '../dialogs/DownloadMenuDialog'
|
||||
import ExpandInfoDialog from '../dialogs/ExpandInfoDialog'
|
||||
|
||||
const AlbumFilter = (props) => {
|
||||
@@ -132,6 +133,7 @@ const AlbumList = (props) => {
|
||||
)}
|
||||
</List>
|
||||
<AddToPlaylistDialog />
|
||||
<DownloadMenuDialog />
|
||||
<ExpandInfoDialog content={<AlbumInfo />} />
|
||||
</>
|
||||
)
|
||||
|
||||
@@ -29,6 +29,7 @@ import {
|
||||
} from '../common'
|
||||
import { AddToPlaylistDialog } from '../dialogs'
|
||||
import config from '../config'
|
||||
import DownloadMenuDialog from '../dialogs/DownloadMenuDialog'
|
||||
import ExpandInfoDialog from '../dialogs/ExpandInfoDialog'
|
||||
|
||||
const useStyles = makeStyles(
|
||||
@@ -187,6 +188,7 @@ const AlbumSongs = (props) => {
|
||||
</Card>
|
||||
</div>
|
||||
<AddToPlaylistDialog />
|
||||
<DownloadMenuDialog />
|
||||
<ExpandInfoDialog content={<SongInfo />} />
|
||||
</>
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user