Mythus commited on
Commit
51df586
·
verified ·
1 Parent(s): 38687fd

Update run.py

Browse files
Files changed (1) hide show
  1. run.py +3 -2
run.py CHANGED
@@ -85,9 +85,10 @@ def addon_stream(type, id):
85
  abort(404)
86
  streams = {'streams': []}
87
 
88
- if type in STREAMS and id in STREAMS[type]:
 
89
  logging.debug(f"Found TV channel: {id}")
90
- streams['streams'] = STREAMS[type][id]
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":