set fallback url
This commit is contained in:
parent
d5a0685dac
commit
a278d817cf
1 changed files with 7 additions and 7 deletions
|
@ -153,21 +153,21 @@ def core_api_sync():
|
||||||
# Debug Functions
|
# Debug Functions
|
||||||
def show_database():
|
def show_database():
|
||||||
global database
|
global database
|
||||||
logger.info('show database:')
|
logger.info('Scheduler DB: ' + database)
|
||||||
logger.info(database)
|
|
||||||
|
|
||||||
def show_scheduled_tasks():
|
def show_scheduled_tasks():
|
||||||
logger.info('show tasks:')
|
logger.info('Scheduler tasks:' + schedule.get_jobs())
|
||||||
logger.info(schedule.get_jobs())
|
|
||||||
|
|
||||||
# Schedule datarhei core api sync
|
# Schedule datarhei core api sync
|
||||||
schedule.every(SYNC_PERIOD).minutes.do(core_api_sync)
|
core_api_sync()
|
||||||
|
schedule.every(SYNC_PERIOD).seconds.do(core_api_sync)
|
||||||
|
|
||||||
# Schedule show db/tasks
|
# Schedule show db/tasks
|
||||||
schedule.every().minute.do(show_database)
|
schedule.every().minute.do(show_database)
|
||||||
schedule.every().minute.do(show_scheduled_tasks)
|
schedule.every().minute.do(show_scheduled_tasks)
|
||||||
|
|
||||||
schedule.run_all()
|
fallback = { "head": "https://stream.deflax.net/memfs/938a36f8-02ff-4452-a7e5-3b6a9a07cdfa.m3u8" }
|
||||||
|
head = fallback
|
||||||
|
|
||||||
@app.route('/', methods=['GET'])
|
@app.route('/', methods=['GET'])
|
||||||
def root_query():
|
def root_query():
|
||||||
|
@ -175,4 +175,4 @@ def root_query():
|
||||||
return jsonify(head)
|
return jsonify(head)
|
||||||
|
|
||||||
def create_app():
|
def create_app():
|
||||||
return app
|
return app
|
||||||
|
|
Loading…
Reference in a new issue