From 6358abe58bb33d104194a12584635e3bed32d0c1 Mon Sep 17 00:00:00 2001 From: Audionut Date: Sun, 6 Oct 2024 20:33:34 +1000 Subject: [PATCH] Proper commercial check --- src/prep.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/prep.py b/src/prep.py index 8d972a5b..d66ca912 100644 --- a/src/prep.py +++ b/src/prep.py @@ -874,6 +874,7 @@ def filter_mediainfo(data): "Channels": track.get("Channels"), "ChannelPositions": track.get("ChannelPositions"), "ChannelLayout": track.get("ChannelLayout"), + "ChannelLayout_Original": track.get("ChannelLayout_Original"), "SamplesPerFrame": track.get("SamplesPerFrame"), "SamplingRate": track.get("SamplingRate"), "SamplingCount": track.get("SamplingCount"), @@ -1890,7 +1891,7 @@ def get_audio_v2(self, mi, meta, bdinfo): track = tracks[track_num] if len(tracks) > track_num else {} format = track.get('Format', '') - commercial = track.get('Format_Commercial', '') + commercial = track.get('Format_Commercial', '') or track.get('Format_Commercial_IfAny', '') if track.get('Language', '') == "zxx": meta['silent'] = True