Skip to content

Commit

Permalink
Proper commercial check
Browse files Browse the repository at this point in the history
  • Loading branch information
Audionut committed Oct 6, 2024
1 parent 95c73a0 commit 6358abe
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/prep.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"),
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 6358abe

Please sign in to comment.