Spaces:
Paused
Paused
Update run.py
Browse files
run.py
CHANGED
|
@@ -68,9 +68,9 @@ def root():
|
|
| 68 |
@app.route('/catalog/tv/tv_channels.json')
|
| 69 |
def catalog():
|
| 70 |
items = []
|
| 71 |
-
for channel in STREAMS:
|
| 72 |
items.append({
|
| 73 |
-
"id":
|
| 74 |
"name": channel["name"],
|
| 75 |
"type": "channel"
|
| 76 |
})
|
|
|
|
| 68 |
@app.route('/catalog/tv/tv_channels.json')
|
| 69 |
def catalog():
|
| 70 |
items = []
|
| 71 |
+
for id, channel in STREAMS["tv"].items():
|
| 72 |
items.append({
|
| 73 |
+
"id": id,
|
| 74 |
"name": channel["name"],
|
| 75 |
"type": "channel"
|
| 76 |
})
|