From bf3897888140d834ccf73c51a4bc565724bfa19c Mon Sep 17 00:00:00 2001 From: Rato Date: Sun, 16 Jul 2017 09:06:42 +0200 Subject: [PATCH] #471: Detect DTS-HD HRA --- HISTORY.rst | 2 ++ docs/properties.rst | 2 +- guessit/rules/properties/audio_codec.py | 1 + guessit/test/movies.yml | 24 ++++++++++++++++++++++++ guessit/test/rules/audio_codec.yml | 9 +++++++++ 5 files changed, 37 insertions(+), 1 deletion(-) diff --git a/HISTORY.rst b/HISTORY.rst index 769ba64..5621f7a 100644 --- a/HISTORY.rst +++ b/HISTORY.rst @@ -88,6 +88,8 @@ History - Added `Upscaled` as new `other` possible value. - Added `Ultimate` as new `edition` possible value. - Added `Fan` as new `edition` possible value. +- Added `High Resolution Audio` as new `audio_profile` possible value. +- Added `Ultimate` as new `edition` possible value. 2.1.4 (2017-06-01) ------------------ diff --git a/docs/properties.rst b/docs/properties.rst index fb4d9f4..9c8160d 100644 --- a/docs/properties.rst +++ b/docs/properties.rst @@ -196,7 +196,7 @@ Audio properties The codec profile used for audio. - - ``High Efficiency``, ``High Quality``, ``Low Complexity``, ``Master Audio`` + - ``High Efficiency``, ``High Quality``, ``High Resolution Audio``, ``Low Complexity``, ``Master Audio`` Localization properties diff --git a/guessit/rules/properties/audio_codec.py b/guessit/rules/properties/audio_codec.py index bbdfeb1..3ceeb89 100644 --- a/guessit/rules/properties/audio_codec.py +++ b/guessit/rules/properties/audio_codec.py @@ -50,6 +50,7 @@ def audio_codec(): rebulk.defaults(name='audio_profile') rebulk.string('MA', value='Master Audio', tags='DTS-HD') + rebulk.string('HR', 'HRA', value='High Resolution Audio', tags='DTS-HD') rebulk.string('HE', value='High Efficiency', tags='AAC') rebulk.string('LC', value='Low Complexity', tags='AAC') rebulk.string('HQ', value='High Quality', tags='Dolby Digital') diff --git a/guessit/test/movies.yml b/guessit/test/movies.yml index 989025e..20424ce 100644 --- a/guessit/test/movies.yml +++ b/guessit/test/movies.yml @@ -1346,4 +1346,28 @@ ? Stargate SG1 Ultimate Fan Collection : title: Stargate SG1 edition: [Ultimate, Fan] + +? The.Jungle.Book.2016.MULTi.1080p.BluRay.x264.DTS-HD.MA.7.1.DTS-HD.HRA.5.1-LeRalou +: title: The Jungle Book + year: 2016 + language: mul + screen_size: 1080p + source: Blu-ray + video_codec: H.264 + audio_codec: DTS-HD + audio_profile: [Master Audio, High Resolution Audio] + audio_channels: ['7.1', '5.1'] + release_group: LeRalou + type: movie + +? Terminus.2015.BluRay.1080p.x264.DTS-HD.HRA.5.1-LTT +: title: Terminus + year: 2015 + source: Blu-ray + screen_size: 1080p + video_codec: H.264 + audio_codec: DTS-HD + audio_profile: High Resolution Audio + audio_channels: '5.1' + release_group: LTT type: movie diff --git a/guessit/test/rules/audio_codec.yml b/guessit/test/rules/audio_codec.yml index aa79704..650e43a 100644 --- a/guessit/test/rules/audio_codec.yml +++ b/guessit/test/rules/audio_codec.yml @@ -95,3 +95,12 @@ ? -51 : audio_channels: '5.1' + +? DTS-HD.HRA +? DTSHD.HRA +? DTS-HD.HR +? DTSHD.HR +? -HRA +? -HR +: audio_codec: DTS-HD + audio_profile: High Resolution Audio