Skip to content

Commit

Permalink
remove extra spaces from notification message
Browse files Browse the repository at this point in the history
  • Loading branch information
kanishka-linux committed Jun 30, 2018
1 parent 177cb0a commit 0d2cd48
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
8 changes: 5 additions & 3 deletions kawaii_player/thread_modules.py
Original file line number Diff line number Diff line change
Expand Up @@ -1495,10 +1495,12 @@ def run(self):
https_val = ''
msg_val = ''
if ui.discover_slaves:
send_notification('Started Process of Discovering. Make sure that other\
slave-server is broadcasting itself')
notifymsg = ('Started Process of Discovering. Make sure that\
other slave-server is broadcasting itself')
else:
send_notification('Started Process of Discovering')
notifymsg = 'Started Process of Discovering'
notifymsg = re.sub(' +', ' ', notifymsg)
send_notification(notifymsg)
if ui.discover_server:
self.clear_list.emit('start')
while ui.discover_server or ui.discover_slaves:
Expand Down
1 change: 1 addition & 0 deletions kawaii_player/widgets/playlist.py
Original file line number Diff line number Diff line change
Expand Up @@ -1149,6 +1149,7 @@ def setup_slave_address(self, ipaddr=None):
f.write(item)
msg = ('Address of Slave is set to {}, now start media server\
and cast single item or playlist'.format(item))
msg = re.sub(' +', ' ', msg)
send_notification(msg)
logger.info(msg)
ui.slave_address = item
Expand Down

0 comments on commit 0d2cd48

Please sign in to comment.