1
0
mirror of https://github.com/TeamNewPipe/NewPipe synced 2025-04-06 02:37:18 +00:00

Merge pull request #12089 from mileskrell/mileskrell/fix-audio-track-labels

Disambiguate audio track labels
This commit is contained in:
Stypox 2025-03-15 12:45:20 +01:00 committed by GitHub
commit 3047704e1c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -308,7 +308,7 @@ public final class Localization {
* <ul>
* <li>English (original)</li>
* <li>English (descriptive)</li>
* <li>Spanish (dubbed)</li>
* <li>Spanish (Spain) (dubbed)</li>
* </ul>
*
* @param context the context used to get the app language
@ -318,7 +318,7 @@ public final class Localization {
public static String audioTrackName(@NonNull final Context context, final AudioStream track) {
final String name;
if (track.getAudioLocale() != null) {
name = track.getAudioLocale().getDisplayLanguage(getAppLocale(context));
name = track.getAudioLocale().getDisplayName();
} else if (track.getAudioTrackName() != null) {
name = track.getAudioTrackName();
} else {