Skip to content

Commit

Permalink
Added darkice status to check
Browse files Browse the repository at this point in the history
  • Loading branch information
faebser committed Oct 24, 2015
1 parent 212b50d commit 7158a6b
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions pistream.py
Original file line number Diff line number Diff line change
Expand Up @@ -249,13 +249,14 @@ def get_stream_status():

print(darkice)

if len(error_messages) == 0:
if len(error_messages) == 0 and darkice is not None:
# no errors
lcd_display.reset()
lcd_display.clear()
lcd_display.message('I am streaming')

return {'link': '<a href="http://panel9.serverhostingcenter.com:2199/tunein/yfgmkhow-stream.pls">Link to the stream</a>', 'errors': len(error_messages), 'messages': error_messages}
return {'link': '<a href="http://panel9.serverhostingcenter.com:2199/tunein/yfgmkhow-stream.pls">Link to the stream</a>', 'errors': len(error_messages), 'messages': error_messages}
else:
abort(500)


def parse_lines_for_error(line):
Expand Down

0 comments on commit 7158a6b

Please sign in to comment.