mirror of
https://github.com/FakeTV/pseudo-channel.git
synced 2026-01-06 02:03:15 +00:00
Fixed the not-updating-daily-schedule bug.
This commit is contained in:
@@ -1054,6 +1054,8 @@ if __name__ == '__main__':
|
||||
|
||||
def run_task():
|
||||
|
||||
global the_daily_schedule
|
||||
|
||||
now = datetime.datetime.now()
|
||||
|
||||
now_time = now.time().replace(microsecond=0)
|
||||
@@ -1070,6 +1072,8 @@ if __name__ == '__main__':
|
||||
|
||||
pseudo_channel.update_schedule_from_google_calendar()
|
||||
|
||||
the_daily_schedule = pseudo_channel.db.get_daily_schedule()
|
||||
|
||||
else:
|
||||
|
||||
pass
|
||||
@@ -1078,6 +1082,8 @@ if __name__ == '__main__':
|
||||
|
||||
pseudo_channel.make_xml_schedule()
|
||||
|
||||
the_daily_schedule = pseudo_channel.db.get_daily_schedule()
|
||||
|
||||
pseudo_channel.controller.tv_controller(the_daily_schedule)
|
||||
|
||||
t = Timer(1, run_task, ())
|
||||
|
||||
@@ -63,6 +63,6 @@ useGoogleCalendar = False
|
||||
|
||||
useCommercialInjection = True
|
||||
|
||||
dailyUpdateTime = "11:59 AM"
|
||||
dailyUpdateTime = "3:00 PM"
|
||||
|
||||
debug_mode = False
|
||||
|
||||
Reference in New Issue
Block a user