Skip to content

Commit

Permalink
feat(audio_channels): add support for "1.0" audio channels
Browse files Browse the repository at this point in the history
  • Loading branch information
plotski authored and Toilal committed Apr 4, 2021
1 parent 18b355d commit f22e33d
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 1 deletion.
3 changes: 2 additions & 1 deletion guessit/config/options.json
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,8 @@
"audio_channels": {
"1.0": [
"1ch",
"mono"
"mono",
"re:(1[\\W_]0(?:ch)?)(?=[^\\d]|$)"
],
"2.0": [
"2ch",
Expand Down
13 changes: 13 additions & 0 deletions guessit/test/movies.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1785,3 +1785,16 @@
release_group: EVO
container: mkv
type: movie

? Kes.1969.1080p.BluRay.FLAC1.0.x264-DON.mkv
: title: Kes
year: 1969
screen_size: 1080p
source: Blu-ray
audio_codec: FLAC
audio_channels: '1.0'
video_codec: H.264
release_group: DON
container: mkv
mimetype: video/x-matroska
type: movie
1 change: 1 addition & 0 deletions guessit/test/rules/audio_codec.yml
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@
? +stereo
: audio_channels: '2.0'

? +1.0
? +1ch
? +mono
: audio_channels: '1.0'
Expand Down

0 comments on commit f22e33d

Please sign in to comment.