fix(player): show actual track format instead of hardcoded FLAC/320kbps
Docker Build & Publish / build (push) Has been cancelled
Docker Build & Publish / push (push) Has been cancelled
Docker Build & Publish / Prune old image versions (push) Has been cancelled

This commit is contained in:
Senko-san
2026-06-13 18:06:35 +03:00
parent 8ae447e08d
commit a8e060d1a8
4 changed files with 8 additions and 4 deletions
@@ -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>
+2
View File
@@ -10,6 +10,7 @@ export interface ResolvedQueueEntry {
durationMs: number;
hasCover: boolean;
albumArtUrl?: string;
format?: string;
}
/**
@@ -35,5 +36,6 @@ export function useResolvedQueueEntry(
durationMs: data?.durationMs ?? entry.durationMs,
hasCover: data?.hasCover ?? false,
albumArtUrl: data?.albumArtUrl ?? entry.albumArtUrl,
format: data?.format,
};
}
+2 -2
View File
@@ -126,8 +126,8 @@ const en = {
pause: 'Pause',
play: 'Play',
repeat: 'Repeat: {{mode}}',
streaming: 'Streaming · 320 kbps',
local: 'Local · FLAC',
streaming: 'Streaming',
local: 'Local',
queue: 'Play queue',
mute: 'Mute',
unmute: 'Unmute',
+2 -2
View File
@@ -128,8 +128,8 @@ const ru: Translations = {
pause: 'Пауза',
play: 'Воспроизвести',
repeat: 'Повтор: {{mode}}',
streaming: 'Стриминг · 320 kbps',
local: 'Локально · FLAC',
streaming: 'Стриминг',
local: 'Локально',
queue: 'Очередь',
mute: 'Выключить звук',
unmute: 'Включить звук',