cc-2015: on reboot resume show
-use native capabilities of liquidsoap cue-in cue-out for song cue-in/cue-out
This commit is contained in:
parent
ec32047efa
commit
ec6db96025
3 changed files with 33 additions and 8 deletions
|
@ -260,7 +260,7 @@ class PypoFetch(Thread):
|
|||
|
||||
delta = dtnow - media_start #we get a TimeDelta object from this operation
|
||||
logger.info("Starting media item at %d second point", delta.seconds)
|
||||
media['cue_in'] = delta.seconds + 10 #TODO is cue_in in seconds?
|
||||
media['cue_in'] = delta.seconds + 10
|
||||
td = timedelta(seconds=10)
|
||||
playlist['start'] = (dtnow + td).strftime('%Y-%m-%d-%H-%M-%S')
|
||||
logger.info("Crash detected, setting playlist to restart at %s", (dtnow + td).strftime('%Y-%m-%d-%H-%M-%S'))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue