fix(player): show actual track format instead of hardcoded FLAC/320kbps
This commit is contained in:
@@ -44,6 +44,7 @@ export function PersistentPlayer() {
|
||||
: undefined);
|
||||
const seedLabel = current?.albumTitle ?? current?.title ?? '';
|
||||
const onStream = !cached;
|
||||
const formatLabel = current?.format?.toUpperCase();
|
||||
|
||||
return (
|
||||
<div className="player">
|
||||
@@ -65,6 +66,7 @@ export function PersistentPlayer() {
|
||||
>
|
||||
<Icon name={onStream ? 'cloud' : 'check-circle'} fill={!onStream} />
|
||||
{onStream ? t('player.streaming') : t('player.local')}
|
||||
{formatLabel && ` · ${formatLabel}`}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user