1
0
mirror of https://github.com/TeamNewPipe/NewPipe synced 2024-12-23 00:20:32 +00:00

Display "Unknown quality" if quality is unknown and not MediaFormat name

This commit is contained in:
TobiGr 2023-07-19 23:36:38 +02:00
parent e51067177e
commit ba84e7eead

View File

@ -154,8 +154,6 @@ public class StreamItemAdapter<T extends Stream, U extends Stream> extends BaseA
final AudioStream audioStream = ((AudioStream) stream); final AudioStream audioStream = ((AudioStream) stream);
if (audioStream.getAverageBitrate() > 0) { if (audioStream.getAverageBitrate() > 0) {
qualityString = audioStream.getAverageBitrate() + "kbps"; qualityString = audioStream.getAverageBitrate() + "kbps";
} else if (mediaFormat != null) {
qualityString = mediaFormat.getName();
} else { } else {
qualityString = context.getString(R.string.unknown_quality); qualityString = context.getString(R.string.unknown_quality);
} }