mirror of
https://github.com/navidrome/navidrome.git
synced 2025-05-07 05:41:07 +03:00
Merge branch 'master' into msi-insights-detection
This commit is contained in:
commit
cd2d87a6d1
@ -75,6 +75,7 @@ export const SongInfo = (props) => {
|
|||||||
compilation: <BooleanField source="compilation" />,
|
compilation: <BooleanField source="compilation" />,
|
||||||
bitRate: <BitrateField source="bitRate" />,
|
bitRate: <BitrateField source="bitRate" />,
|
||||||
bitDepth: <NumberField source="bitDepth" />,
|
bitDepth: <NumberField source="bitDepth" />,
|
||||||
|
sampleRate: <NumberField source="sampleRate" />,
|
||||||
channels: <NumberField source="channels" />,
|
channels: <NumberField source="channels" />,
|
||||||
size: <SizeField source="size" />,
|
size: <SizeField source="size" />,
|
||||||
updatedAt: <DateField source="updatedAt" showTime />,
|
updatedAt: <DateField source="updatedAt" showTime />,
|
||||||
@ -92,7 +93,14 @@ export const SongInfo = (props) => {
|
|||||||
roles.push([name, record.participants[name].length])
|
roles.push([name, record.participants[name].length])
|
||||||
}
|
}
|
||||||
|
|
||||||
const optionalFields = ['discSubtitle', 'comment', 'bpm', 'genre', 'bitDepth']
|
const optionalFields = [
|
||||||
|
'discSubtitle',
|
||||||
|
'comment',
|
||||||
|
'bpm',
|
||||||
|
'genre',
|
||||||
|
'bitDepth',
|
||||||
|
'sampleRate',
|
||||||
|
]
|
||||||
optionalFields.forEach((field) => {
|
optionalFields.forEach((field) => {
|
||||||
!record[field] && delete data[field]
|
!record[field] && delete data[field]
|
||||||
})
|
})
|
||||||
|
@ -19,6 +19,7 @@
|
|||||||
"updatedAt": "Updated at",
|
"updatedAt": "Updated at",
|
||||||
"bitRate": "Bit rate",
|
"bitRate": "Bit rate",
|
||||||
"bitDepth": "Bit depth",
|
"bitDepth": "Bit depth",
|
||||||
|
"sampleRate": "Sample rate",
|
||||||
"channels": "Channels",
|
"channels": "Channels",
|
||||||
"discSubtitle": "Disc Subtitle",
|
"discSubtitle": "Disc Subtitle",
|
||||||
"starred": "Favourite",
|
"starred": "Favourite",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user