mirror of
https://github.com/mitb-archive/filebot
synced 2024-11-15 22:05:00 -05:00
Best effort to make {aco} work on different versions of libmediainfo (if possible)
This commit is contained in:
parent
8c8e1045fb
commit
17c94baeca
@ -413,7 +413,7 @@ public class MediaBindingBean {
|
|||||||
|
|
||||||
@Define("aco")
|
@Define("aco")
|
||||||
public String getAudioChannelObjects() {
|
public String getAudioChannelObjects() {
|
||||||
return getMediaInfo(StreamKind.Audio, "Codec_Profile").filter(Objects::nonNull).map(s -> {
|
return getMediaInfo(StreamKind.Audio, "Codec_Profile", "Format_Profile", "Format_Commercial").filter(Objects::nonNull).map(s -> {
|
||||||
return SLASH.splitAsStream(s).findFirst().orElse(null);
|
return SLASH.splitAsStream(s).findFirst().orElse(null);
|
||||||
}).filter(Objects::nonNull).map(String::trim).filter(s -> s.length() > 0).findFirst().orElse(null);
|
}).filter(Objects::nonNull).map(String::trim).filter(s -> s.length() > 0).findFirst().orElse(null);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user