mirror of
https://github.com/FakeTV/pseudo-channel.git
synced 2025-12-20 02:03:26 +00:00
Removed the annoying delay before triggering current media play().
This commit is contained in:
@@ -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')
|
||||||
|
|||||||
Reference in New Issue
Block a user