Skip to content

Commit

Permalink
add sound mode 'DOLBY PLII MOVIE' (#143)
Browse files Browse the repository at this point in the history
* add sound mode 'DOLBY PLII MOVIE'

* make logger warning sound mode uppercase

This makes it easier to add to the matching dict

* add DOLBY AUDIO - DOLBY DIGITAL sound mode
  • Loading branch information
starkillerOG authored Jun 8, 2020
1 parent de78856 commit 739db2b
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions denonavr/denonavr.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
'DTS NEO:X MUSIC', 'DOLBY PL2 MUSIC']),
('MOVIE', ['PLII MOVIE', 'PLII CINEMA', 'DTS NEO:X CINEMA',
'DTS NEO:6 CINEMA', 'DOLBY D +NEO:X C',
'PLIIX CINEMA']),
'PLIIX CINEMA', 'DOLBY PLII MOVIE']),
('GAME', ['PLII GAME', 'DOLBY D +NEO:X G']),
('AUTO', ['None']),
('STANDARD', ['None2']),
Expand All @@ -81,7 +81,8 @@
'DOLBY AUDIO - TRUEHD + NEURAL:X',
'DOLBY AUDIO - DD + DSUR',
'DOLBY AUDIO - DD+ + NEURAL:X',
'DOLBY AUDIO - DD+ + DSUR']),
'DOLBY AUDIO - DD+ + DSUR',
'DOLBY AUDIO - DOLBY DIGITAL']),
('DTS SURROUND', ['DTS SURROUND', 'DTS NEURAL:X', 'STANDARD(DTS)',
'DTS + NEURAL:X', 'MULTI CH IN', 'DTS-HD MSTR',
'DTS VIRTUAL:X', 'DTS-HD + NEURAL:X', 'DTS-HD',
Expand Down Expand Up @@ -1715,7 +1716,7 @@ def match_sound_mode(self, sound_mode_raw):
self._sound_mode_dict[smr_up] = [smr_up]
self._sm_match_dict = self.construct_sm_match_dict()
_LOGGER.warning("Not able to match sound mode: '%s', "
"returning raw sound mode.", sound_mode_raw)
"returning raw sound mode.", smr_up)
return sound_mode_raw

def toggle_play_pause(self):
Expand Down

0 comments on commit 739db2b

Please sign in to comment.