feat: Adds Audio Channel Metadata - #1036

This commit is contained in:
Miguel A. Arroyo
2021-08-20 17:35:59 -07:00
committed by Deluan Quintão
parent 0079a9b938
commit e12a14a87d
14 changed files with 115 additions and 12 deletions
+2 -1
View File
@@ -119,6 +119,7 @@ const AlbumSongs = (props) => {
/>
),
quality: isDesktop && <QualityInfo source="quality" sortable={false} />,
channels: isDesktop && <NumberField source="channels" sortable={true} />,
bpm: isDesktop && <NumberField source="bpm" sortable={false} />,
rating: isDesktop && config.enableStarRating && (
<RatingField
@@ -135,7 +136,7 @@ const AlbumSongs = (props) => {
resource: 'albumSong',
columns: toggleableFields,
omittedColumns: ['title'],
defaultOff: ['bpm', 'year'],
defaultOff: ['channels', 'bpm', 'year'],
})
return (
+1
View File
@@ -38,6 +38,7 @@ export const SongDetails = (props) => {
),
compilation: <BooleanField source="compilation" />,
bitRate: <BitrateField source="bitRate" />,
channels: <NumberField source="channels" />,
size: <SizeField source="size" />,
updatedAt: <DateField source="updatedAt" showTime />,
playCount: <TextField source="playCount" />,
+1
View File
@@ -18,6 +18,7 @@
"size": "File size",
"updatedAt": "Updated at",
"bitRate": "Bit rate",
"channels": "Channels",
"discSubtitle": "Disc Subtitle",
"starred": "Favourite",
"comment": "Comment",
+2 -1
View File
@@ -148,6 +148,7 @@ const PlaylistSongs = ({ playlistId, readOnly, actions, ...props }) => {
/>
),
quality: isDesktop && <QualityInfo source="quality" sortable={false} />,
channels: isDesktop && <NumberField source="channels" sortable={true} />,
bpm: isDesktop && <NumberField source="bpm" />,
}
}, [isDesktop, classes.draggable])
@@ -155,7 +156,7 @@ const PlaylistSongs = ({ playlistId, readOnly, actions, ...props }) => {
const columns = useSelectedFields({
resource: 'playlistTrack',
columns: toggleableFields,
defaultOff: ['bpm', 'year'],
defaultOff: ['channels', 'bpm', 'year'],
})
return (
+11 -1
View File
@@ -121,6 +121,9 @@ const SongList = (props) => {
/>
),
quality: isDesktop && <QualityInfo source="quality" sortable={false} />,
channels: isDesktop && (
<NumberField source="channels" sortByOrder={'ASC'} />
),
duration: <DurationField source="duration" />,
rating: config.enableStarRating && (
<RatingField
@@ -139,7 +142,14 @@ const SongList = (props) => {
const columns = useSelectedFields({
resource: 'song',
columns: toggleableFields,
defaultOff: ['bpm', 'playDate', 'albumArtist', 'genre', 'comment'],
defaultOff: [
'channels',
'bpm',
'playDate',
'albumArtist',
'genre',
'comment',
],
})
return (