ffProbe's disposition comment flag (#269)

Checks the disposition comment flag for positive commentary
This commit is contained in:
Stephen Townsend 2022-02-14 20:28:05 -08:00 committed by GitHub
parent 84ba82bcf1
commit 38c37509ba
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -55,6 +55,7 @@ const plugin = (file, librarySettings, inputs, otherArguments) => {
try {
if (
file.ffProbeData.streams[i].codec_type.toLowerCase() == "audio" &&
file.ffProbeData.streams[i].disposition.comment == 1 ||
file.ffProbeData.streams[i].tags.title
.toLowerCase()
.includes("commentary")