Added a new var to config where you can specify the server path to the schedules/ directory. If set it will use ajax to determine when to refresh the page, if it is left empty it will use the usual 30 second refresh functionality.

This commit is contained in:
Justin Emter
2017-08-03 22:32:25 -07:00
parent 014cad998b
commit dfc0290316
3 changed files with 105 additions and 4 deletions

View File

@@ -49,6 +49,8 @@ class PseudoChannel():
COMMERCIAL_PADDING_IN_SECONDS = config.commercialPadding
CONTROLLER_SERVER_PATH = config.controllerServerPath
DEBUG = config.debug_mode
def __init__(self):
@@ -59,6 +61,7 @@ class PseudoChannel():
config.baseurl,
config.token,
config.plexClients,
self.CONTROLLER_SERVER_PATH,
self.DEBUG
)
@@ -1087,8 +1090,6 @@ if __name__ == '__main__':
pseudo_channel.generate_daily_schedule()
pseudo_channel.make_xml_schedule()
the_daily_schedule = pseudo_channel.db.get_daily_schedule()
pseudo_channel.controller.tv_controller(the_daily_schedule)