From 0e70b35f5ee9e84fca1229721474241839541748 Mon Sep 17 00:00:00 2001 From: Mikael Finstad Date: Thu, 26 Nov 2020 22:59:04 +0100 Subject: [PATCH] add lang column to tracks #514 --- src/StreamsSelector.jsx | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/StreamsSelector.jsx b/src/StreamsSelector.jsx index 48482ba4..6803900d 100644 --- a/src/StreamsSelector.jsx +++ b/src/StreamsSelector.jsx @@ -50,6 +50,7 @@ const Stream = memo(({ stream, onToggle, copyStream, fileDuration }) => { } const streamFps = getStreamFps(stream); + const language = stream.tags && stream.tags.language; const onClick = () => onToggle && onToggle(stream.index); @@ -63,6 +64,7 @@ const Stream = memo(({ stream, onToggle, copyStream, fileDuration }) => { {!Number.isNaN(duration) && `${formatDuration({ seconds: duration })}`} {stream.nb_frames} {!Number.isNaN(bitrate) && `${(bitrate / 1e6).toFixed(1)}MBit/s`} + {language} {stream.width && stream.height && `${stream.width}x${stream.height}`} {stream.channels && `${stream.channels}c`} {stream.channel_layout} {streamFps && `${streamFps.toFixed(2)}fps`} onInfoClick(stream, t('Stream info'))} size={26} /> @@ -75,7 +77,7 @@ const FileRow = ({ path, formatData, onTrashClick }) => { return ( {onTrashClick && } - {path.replace(/.*\/([^/]+)$/, '$1')} + {path.replace(/.*\/([^/]+)$/, '$1')} onInfoClick(formatData, t('File info'))} size={26} /> ); @@ -123,6 +125,7 @@ const StreamsSelector = memo(({ {t('Duration')} {t('Frames')} {t('Bitrate')} + {t('Lang')} {t('Data')} @@ -143,7 +146,7 @@ const StreamsSelector = memo(({ {externalFilesEntries.map(([path, { streams, formatData }]) => ( - + removeFile(path)} />