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:
parent
b0cfea4eda
commit
0d1ac6ae56
@ -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")
|
||||
|
Loading…
Reference in New Issue
Block a user