LoremPizza commited on
Commit
c2e1a8a
·
verified ·
1 Parent(s): 6e22549

Update wltv_server.py

Browse files
Files changed (1) hide show
  1. 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('/skytg24/now', methods=['GET'])
127
- def current_skytg24_program():
128
- program_info = get_current_program("skytg24")
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: