mirror of
https://github.com/FakeTV/pseudo-channel.git
synced 2025-12-27 21:53:55 +00:00
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user