mirror of
https://github.com/LukeSpad/BeoGateway.git
synced 2024-12-23 21:51:51 +00:00
Add files via upload
This commit is contained in:
parent
99604372bb
commit
fe5557b2e5
1 changed files with 3 additions and 3 deletions
|
@ -84,7 +84,7 @@ class MLCLIClient(asynchat.async_chat):
|
||||||
for item in items:
|
for item in items:
|
||||||
try:
|
try:
|
||||||
telegram.append(int(item[:-1], base=16))
|
telegram.append(int(item[:-1], base=16))
|
||||||
except:
|
except TypeError:
|
||||||
# abort if invalid character found
|
# abort if invalid character found
|
||||||
self.log.debug('Invalid character ' + str(item) + ' found in telegram: ' +
|
self.log.debug('Invalid character ' + str(item) + ' found in telegram: ' +
|
||||||
''.join(items) + '\nAborting!')
|
''.join(items) + '\nAborting!')
|
||||||
|
@ -362,7 +362,7 @@ class MLCLIClient(asynchat.async_chat):
|
||||||
for channel in device['Sources'][message["State_Update"]["source"]]['channels']:
|
for channel in device['Sources'][message["State_Update"]["source"]]['channels']:
|
||||||
if channel['number'] == message["State_Update"]["nowPlayingDetails"]["channel_track"]:
|
if channel['number'] == message["State_Update"]["nowPlayingDetails"]["channel_track"]:
|
||||||
message["State_Update"]["nowPlaying"] = channel['name']
|
message["State_Update"]["nowPlaying"] = channel['name']
|
||||||
break
|
return
|
||||||
# If device is a NetLink device and has no ML_ID, seek a generic solution from the first device that has
|
# If device is a NetLink device and has no ML_ID, seek a generic solution from the first device that has
|
||||||
# this source available: This could give an incorrect response if a link room device has a different
|
# this source available: This could give an incorrect response if a link room device has a different
|
||||||
# favorites list to the Audio Master!
|
# favorites list to the Audio Master!
|
||||||
|
@ -372,7 +372,7 @@ class MLCLIClient(asynchat.async_chat):
|
||||||
for channel in device['Sources'][message["State_Update"]["source"]]['channels']:
|
for channel in device['Sources'][message["State_Update"]["source"]]['channels']:
|
||||||
if channel['number'] == message["State_Update"]["nowPlayingDetails"]["channel_track"]:
|
if channel['number'] == message["State_Update"]["nowPlayingDetails"]["channel_track"]:
|
||||||
message["State_Update"]["nowPlaying"] = channel['name']
|
message["State_Update"]["nowPlaying"] = channel['name']
|
||||||
break
|
return
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def _get_source_name(source, message):
|
def _get_source_name(source, message):
|
||||||
|
|
Loading…
Reference in a new issue