mirror of
https://github.com/acatoire/bipbipzizik.git
synced 2026-03-10 08:01:18 +00:00
Stable version with multiroom.
Take care of EOL for .sh MUST be LF.
This commit is contained in:
5
box.py
5
box.py
@@ -23,12 +23,12 @@ cardList = CardList()
|
||||
address = cfg.ip + ':' + cfg.port
|
||||
|
||||
# Create command line
|
||||
if cfg.location == '':
|
||||
if cfg.roomName == '':
|
||||
# Command for global playing
|
||||
commandLine = address + ' '
|
||||
else:
|
||||
# Command for local playing
|
||||
commandLine = address + ' ' + cfg.location + '/'
|
||||
commandLine = address + ' ' + cfg.roomName + '/'
|
||||
|
||||
# Previous card id memory
|
||||
previousCard = ""
|
||||
@@ -51,6 +51,7 @@ while True:
|
||||
plist = cardList.getPlaylist(card)
|
||||
print 'Command : ', plist
|
||||
if plist != '':
|
||||
# Check if sonosplay.sh is executable, if not write an error message
|
||||
subprocess.check_call(["./sonosplay.sh %s" % commandLine + plist], shell=True)
|
||||
|
||||
range(10000) # some payload code
|
||||
|
||||
Reference in New Issue
Block a user