Skip to content

Commit

Permalink
1.0.2
Browse files Browse the repository at this point in the history
  • Loading branch information
flatsiedatsie authored Dec 16, 2020
1 parent de86921 commit 86f9807
Showing 1 changed file with 15 additions and 11 deletions.
26 changes: 15 additions & 11 deletions pkg/airport.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,19 @@ def __init__(self, verbose=True):
self.audio_output_options.append( option['human_device_name'] )


# Create Airport device
try:
#airport_device = AirportDevice(self, self.audio_output_options, self.video_audio_output_options)
airport_device = AirportDevice(self, self.audio_output_options, self.video_audio_output_options)
#print(str(airport_device));
self.handle_device_added( airport_device )
#if self.DEBUG:
print("airport device created")

except Exception as ex:
print("Could not create airport device: " + str(ex))


# Start streaming servers
if self.audio:
print("Enabling Shairport-sync airplay audio receiver")
Expand All @@ -135,17 +148,7 @@ def __init__(self, verbose=True):
self.set_video_audio_output(str(self.persistent_data['video_audio_output']))


# Create Airport device
try:
#airport_device = AirportDevice(self, self.audio_output_options, self.video_audio_output_options)
airport_device = AirportDevice(self, self.audio_output_options, self.video_audio_output_options)
#print(str(airport_device));
self.handle_device_added( airport_device )
#if self.DEBUG:
print("airport device created")

except Exception as ex:
print("Could not create airport device: " + str(ex))


print("End of Airport adapter init process")
Expand Down Expand Up @@ -268,7 +271,8 @@ def set_audio_output(self, selection):
if self.DEBUG:
print("new selection on thing: " + str(selection))
try:
#print("self.devices = " + str(self.devices))
if self.DEBUG:
print("self.devices = " + str(self.devices))
if self.devices['airport'] != None:
self.devices['airport'].properties['audio output'].update( str(selection) )
except Exception as ex:
Expand Down

0 comments on commit 86f9807

Please sign in to comment.