From b7aec2bc7062ce2b5b0c339cce9d3637f58c6b7e Mon Sep 17 00:00:00 2001 From: Justin Emter Date: Tue, 8 Aug 2017 21:01:41 -0700 Subject: [PATCH] Removed the annoying delay before triggering current media play(). --- PseudoChannel.py | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/PseudoChannel.py b/PseudoChannel.py index ae4ad7c..5b34a3a 100644 --- a/PseudoChannel.py +++ b/PseudoChannel.py @@ -1087,7 +1087,7 @@ if __name__ == '__main__': if item_time == closest_media: - print "Line 1088, Here", item + #print "Line 1088, Here", item elapsed_time = closest_media - now @@ -1118,8 +1118,9 @@ if __name__ == '__main__': pseudo_channel.controller.play(prevItem, daily_schedule, offsetTwo) - print "+++++ Closest media was the next media" \ - "but we were in the middle of something so triggering that instead." + if pseudo_channel.DEBUG: + print "+++++ Closest media was the next media " \ + "but we were in the middle of something so triggering that instead." break @@ -1198,7 +1199,7 @@ if __name__ == '__main__': go_generate_daily_sched ).tag('daily-update') - trigger_flag = 1 + trigger_what_should_be_playing_now() try: @@ -1208,12 +1209,6 @@ if __name__ == '__main__': sleep(1) - if trigger_flag: - - trigger_what_should_be_playing_now() - - trigger_flag = 0; - except KeyboardInterrupt: print(' Manual break by user')