Spaces:
Paused
Paused
Update wltv_server.py
Browse files- wltv_server.py +3 -3
wltv_server.py
CHANGED
|
@@ -123,9 +123,9 @@ def update_files():
|
|
| 123 |
return "Files updated", 200
|
| 124 |
|
| 125 |
# Route to serve the current program on Sky TG24
|
| 126 |
-
@app.route('
|
| 127 |
-
def current_skytg24_program():
|
| 128 |
-
program_info = get_current_program(
|
| 129 |
if program_info:
|
| 130 |
return jsonify(program_info)
|
| 131 |
else:
|
|
|
|
| 123 |
return "Files updated", 200
|
| 124 |
|
| 125 |
# Route to serve the current program on Sky TG24
|
| 126 |
+
@app.route('/<id>/now', methods=['GET'])
|
| 127 |
+
def current_skytg24_program(id):
|
| 128 |
+
program_info = get_current_program(id)
|
| 129 |
if program_info:
|
| 130 |
return jsonify(program_info)
|
| 131 |
else:
|