mirror of
https://github.com/TeamNewPipe/NewPipe
synced 2024-12-22 16:10:31 +00:00
Display "Unknown quality" if quality is unknown and not MediaFormat name
This commit is contained in:
parent
e51067177e
commit
ba84e7eead
@ -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);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user