Spaces:
Paused
Paused
Update run.py
Browse files
run.py
CHANGED
|
@@ -85,9 +85,10 @@ def addon_stream(type, id):
|
|
| 85 |
abort(404)
|
| 86 |
streams = {'streams': []}
|
| 87 |
|
| 88 |
-
|
|
|
|
| 89 |
logging.debug(f"Found TV channel: {id}")
|
| 90 |
-
streams['streams'] =
|
| 91 |
else:
|
| 92 |
logging.debug(f"Handling movie or series: {id}")
|
| 93 |
if MYSTERIUS == "1":
|
|
|
|
| 85 |
abort(404)
|
| 86 |
streams = {'streams': []}
|
| 87 |
|
| 88 |
+
channel = STREAMS.get(type, {}).get(id)
|
| 89 |
+
if channel:
|
| 90 |
logging.debug(f"Found TV channel: {id}")
|
| 91 |
+
streams['streams'] = [{"title": channel["name"], "url": channel["url"]}]
|
| 92 |
else:
|
| 93 |
logging.debug(f"Handling movie or series: {id}")
|
| 94 |
if MYSTERIUS == "1":
|