guessit-io / guessit

GuessIt is a python library that extracts as much information as possible from a video filename.
https://guessit-io.github.io/guessit
GNU Lesser General Public License v3.0
816 stars 92 forks source link

fix(audio_codec): Detect "E-AC-3" and "AC-3" #733

Closed plotski closed 1 year ago

plotski commented 1 year ago

This fixes detection of AC3 and EAC3 with dashes (AC-3, E-AC-3, EAC-3, etc):

Without the fix:

$ guessit 'Foo 2009 E-AC-3 5.1-ASDF'
For: Foo 2009 E-AC-3 5.1-ASDF
GuessIt found: {
    "title": "Foo",
    "year": 2009,
    "alternative_title": "E-AC-3",
    "audio_channels": "5.1",
    "release_group": "ASDF",
    "type": "movie"
}

With the fix:

$ guessit 'Foo 2009 E-AC-3 5.1-ASDF'
For: Foo 2009 E-AC-3 5.1-ASDF
GuessIt found: {
    "title": "Foo",
    "year": 2009,
    "audio_codec": "Dolby Digital Plus",
    "audio_channels": "5.1",
    "release_group": "ASDF",
    "type": "movie"
}