mirror of
https://github.com/tapframe/NuvioStreaming.git
synced 2026-03-11 17:45:38 +00:00
fix
This commit is contained in:
parent
8232a1406f
commit
da6ad87370
1 changed files with 5 additions and 2 deletions
|
|
@ -123,9 +123,12 @@ export const getTrackDisplayName = (track: { name?: string, id: number, language
|
|||
return languageMatch[1];
|
||||
}
|
||||
|
||||
// Handle generic VLC track names like "Audio 1", "Track 1"
|
||||
// Handle generic VLC track names like "Audio 1", "Track 1" — use language if available
|
||||
if (genericTrackMatch) {
|
||||
return `Audio ${genericTrackMatch[2]}`;
|
||||
if (track.language && track.language !== 'Unknown') {
|
||||
return formatLanguage(track.language);
|
||||
}
|
||||
return track.name;
|
||||
}
|
||||
|
||||
// Check for common language patterns in the name
|
||||
|
|
|
|||
Loading…
Reference in a new issue