Skip to content

Commit

Permalink
fix(audio_codec): detect "E-AC-3" and "AC-3"
Browse files Browse the repository at this point in the history
  • Loading branch information
plotski authored and Toilal committed Nov 1, 2022
1 parent 47f5718 commit 72dc12e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 2 additions & 2 deletions guessit/config/options.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,10 @@
"audio_codec": {
"MP3": {"string": ["MP3", "LAME"],"regex": ["LAME(?:\\d)+-?(?:\\d)+"]},
"MP2": "MP2",
"Dolby Digital": {"string": ["Dolby", "DolbyDigital"], "regex": ["Dolby-Digital", "DD", "AC3D?"]},
"Dolby Digital": {"string": ["Dolby", "DolbyDigital"], "regex": ["Dolby-Digital", "DD", "AC-?3D?"]},
"Dolby Atmos": {"string": ["Atmos"], "regex": ["Dolby-?Atmos"]},
"AAC": "AAC",
"Dolby Digital Plus": ["EAC3", "DDP", "DD+"],
"Dolby Digital Plus": {"string": ["DDP", "DD+"], "regex": ["E-?AC-?3"]},
"FLAC": "Flac",
"DTS": "DTS",
"DTS-HD": {"regex": ["DTS-?HD", "DTS(?=-?MA)"], "conflict_solver": "lambda match, other: other if other.name == 'audio_codec' else '__default__'"},
Expand Down
4 changes: 4 additions & 0 deletions guessit/test/rules/audio_codec.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,15 @@
? +DD
? +Dolby Digital
? +AC3
? +AC-3
: audio_codec: Dolby Digital

? +DDP
? +DD+
? +EAC3
? +EAC-3
? +E-AC-3
? +E-AC3
: audio_codec: Dolby Digital Plus

? +DolbyAtmos
Expand Down

0 comments on commit 72dc12e

Please sign in to comment.