Commit 425d73ba authored by fred's avatar fred

stamina: adjust stream timeout for late starts

parent 19fda372
......@@ -119,7 +119,8 @@ class Command(BaseCommand):
print(now, 'playing stream',
# TODO: jingle
cmd = 'sleep 86400 # stream' # will never stop by itself
await self.player_process(cmd, timeout=slot.duration)
print('timeout at', (slot.end_datetime - now).total_seconds())
await self.player_process(cmd, timeout=(slot.end_datetime - now).total_seconds())
print(now, 'playing sound', slot.episode)
# TODO: jingle
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment