1
0
mirror of https://github.com/mitb-archive/filebot synced 2025-01-11 05:48:01 -05:00

Channels 2.0

This commit is contained in:
Reinhard Pointner 2016-02-22 17:15:19 +00:00
parent b0cfea4eda
commit 0d1ac6ae56

View File

@ -358,10 +358,10 @@ public class MediaBindingBean {
@Define("channels")
public String getAudioChannelPositions() {
String[] channels = getMediaInfo(StreamKind.Audio, 0, "ChannelPositions/String2").split("/");
String[] channels = getMediaInfo(StreamKind.Audio, 0, "ChannelPositions/String2", "Channel(s)_Original", "Channel(s)").split("/");
// e.g. 5.1
return stream(channels).map(BigDecimal::new).reduce(BigDecimal.ZERO, BigDecimal::add).toPlainString();
return stream(channels).map(BigDecimal::new).reduce(BigDecimal.ZERO, BigDecimal::add).setScale(1).toPlainString();
}
@Define("resolution")