Added logging for liquidsoap run command.

This commit is contained in:
Rudi Grinberg 2012-09-05 16:04:28 -04:00
parent 4fdf3c1b77
commit 272840eb5a
1 changed files with 2 additions and 1 deletions

View File

@ -477,10 +477,11 @@ def file_playable(pathname):
#between them. We run the command as pypo because otherwise the target file
#is opened with write permissions, and this causes an inotify ON_CLOSE_WRITE
#event to be fired :/
return True
command = ("airtime-liquidsoap -c 'output.dummy" + \
"(audio_to_stereo(single(\"%s\")))' > /dev/null 2>&1") % \
pathname.replace("'", "'\\''")
print(command)
return True
return_code = subprocess.call(command, shell=True)
return (return_code == 0)