little fix

This commit is contained in:
UrloMythus
2024-08-25 16:58:52 +02:00 Unverified
parent f5c13ee8cb
commit 7a9acd708d
+4 -5
View File
@@ -114,17 +114,16 @@ def addon_stream(type, id):
if type == "tv": if type == "tv":
for channel in STREAM["channels"]: for channel in STREAM["channels"]:
if channel["id"] == id: if channel["id"] == id:
streams['streams'].append({
'title': channel['name'],
'url': channel['url']
})
if id in okru: if id in okru:
channel_url = okru_get_url(id) channel_url = okru_get_url(id)
streams['streams'].append({ streams['streams'].append({
'title': channel['name'] + "OKRU", 'title': channel['name'] + "OKRU",
'url': channel_url 'url': channel_url
}) })
streams['streams'].append({
'title': channel['name'],
'url': channel['url']
})
if not streams['streams']: if not streams['streams']:
abort(404) abort(404)
return respond_with(streams) return respond_with(streams)