Skip to content

Commit

Permalink
Added Music Server to netaudio and playing sources
Browse files Browse the repository at this point in the history
  • Loading branch information
ol-iver committed Apr 22, 2017
1 parent 35c99ef commit a2ea7a8
Showing 1 changed file with 3 additions and 14 deletions.
17 changes: 3 additions & 14 deletions denonavr/denonavr.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,19 +24,14 @@
'CBL/SAT': 'SAT/CBL', 'Tuner': 'TUNER', 'Phono': 'PHONO',
'Media Server': 'SERVER', 'HD Radio': 'HDRADIO',
'DVD/Blu-ray': 'DVD', 'Spotify': 'SPOTIFY',
'Flickr': 'FLICKR', 'Favorites': 'FAVORITES',
'Analog In 1': 'AUXB', 'Analog In 2': 'AUXC',
'Digital In': 'AUXD'}
'Flickr': 'FLICKR', 'Favorites': 'FAVORITES'}

PLAYING_SOURCES = ("Online Music", "Media Server", "iPod/USB", "Bluetooth",
"Internet Radio", "Favorites", "Spotify", "Flickr", "Tuner",
"HD Radio", "TUNER", "NET/USB", "HDRADIO")
"HD Radio", "TUNER", "NET/USB", "HDRADIO", "Music Server")
NETAUDIO_SOURCES = ("Online Music", "Media Server", "iPod/USB", "Bluetooth",
"Internet Radio", "Favorites", "Spotify", "Flickr",
"NET/USB")

NON_X_STATIC_SOURCES = {'Internet Radio': 'Internet Radio',
'Media Server': 'Media Server'}
"NET/USB", "Music Server")

APPCOMMAND_URL = "/goform/AppCommand.xml"
STATUS_URL = "/goform/formMainZone_MainZoneXmlStatus.xml"
Expand Down Expand Up @@ -190,8 +185,6 @@ def update(self):
try:
root = self.get_status_xml(self._host, MAINZONE_URL)
except ConnectionError:
self._power = POWER_OFF
self._state = STATE_OFF
return False

# Set all tags to be evaluated
Expand All @@ -210,8 +203,6 @@ def update(self):
try:
root = self.get_status_xml(self._host, STATUS_URL)
except ConnectionError:
self._power = POWER_OFF
self._state = STATE_OFF
return False

# Try to get the rest of the tags from this XML
Expand Down Expand Up @@ -518,8 +509,6 @@ def _get_receiver_sources(self):
non_x_sources.pop(deleted_source[0], None)
# Invalid source "SOURCE" needs to be deleted
non_x_sources.pop("SOURCE", None)
# Add AVR-nonX static resources (netaudio devices)
# non_x_sources.update(NON_X_STATIC_SOURCES)
return non_x_sources

else:
Expand Down

0 comments on commit a2ea7a8

Please sign in to comment.