Removed the annoying delay before triggering current media play().

This commit is contained in:
Justin Emter
2017-08-08 21:01:41 -07:00
parent 21a5f7c28a
commit b7aec2bc70

View File

@@ -1087,7 +1087,7 @@ if __name__ == '__main__':
if item_time == closest_media: if item_time == closest_media:
print "Line 1088, Here", item #print "Line 1088, Here", item
elapsed_time = closest_media - now elapsed_time = closest_media - now
@@ -1118,8 +1118,9 @@ if __name__ == '__main__':
pseudo_channel.controller.play(prevItem, daily_schedule, offsetTwo) pseudo_channel.controller.play(prevItem, daily_schedule, offsetTwo)
print "+++++ Closest media was the next media" \ if pseudo_channel.DEBUG:
"but we were in the middle of something so triggering that instead." print "+++++ Closest media was the next media " \
"but we were in the middle of something so triggering that instead."
break break
@@ -1198,7 +1199,7 @@ if __name__ == '__main__':
go_generate_daily_sched go_generate_daily_sched
).tag('daily-update') ).tag('daily-update')
trigger_flag = 1 trigger_what_should_be_playing_now()
try: try:
@@ -1208,12 +1209,6 @@ if __name__ == '__main__':
sleep(1) sleep(1)
if trigger_flag:
trigger_what_should_be_playing_now()
trigger_flag = 0;
except KeyboardInterrupt: except KeyboardInterrupt:
print(' Manual break by user') print(' Manual break by user')