mirror of
https://github.com/navidrome/navidrome.git
synced 2026-11-23 10:29:46 +01:00
Fix downloading and sharing from a playlist. Fix #2123
This commit is contained in:
parent
25374b3bbe
commit
762a1ba998
3 changed files with 11 additions and 11 deletions
|
|
@ -29,10 +29,11 @@ const DownloadMenuDialog = () => {
|
|||
|
||||
const handleDownload = (e) => {
|
||||
if (record) {
|
||||
const id = record.mediaFileId || record.id
|
||||
if (originalFormat) {
|
||||
subsonic.download(record.id, 'raw')
|
||||
subsonic.download(id, 'raw')
|
||||
} else {
|
||||
subsonic.download(record.id, format, maxBitRate?.toString())
|
||||
subsonic.download(id, format, maxBitRate?.toString())
|
||||
}
|
||||
dispatch(closeDownloadMenu())
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue