From ce1b8517c607b56c69e97e37f9206a2bbd66b878 Mon Sep 17 00:00:00 2001 From: Urlo30 <91965455+UrloMythus@users.noreply.github.com> Date: Sun, 18 Aug 2024 19:27:09 +0200 Subject: [PATCH] Update run.py --- run.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/run.py b/run.py index c0d4b89..ade23f5 100644 --- a/run.py +++ b/run.py @@ -2,6 +2,7 @@ from flask import Flask, jsonify, abort from filmpertutti import filmpertutti from streamingcommunity import streaming_community from tantifilm import tantifilm +from lordchannel import lordchannel import json import config import logging @@ -13,6 +14,7 @@ STREAMINGCOMMUNITY = config.STREAMINGCOMMUNITY MYSTERIUS = config.MYSTERIUS TUTTIFILM = config.TUTTIFILM TF_DOMAIN = config.TF_DOMAIN +LORDCHANNEL = config.LORDCHANNEL HOST = config.HOST PORT = int(config.PORT) HF = config.HF @@ -184,6 +186,12 @@ def addon_stream(type, id): streams['streams'].append({'title': f'{HF}StreamingCommunity 720p Max', 'url': url_720_streaming_community}) else: streams['streams'].append({'title': f'{HF}StreamingCommunity 720p Max', 'url': url_streaming_community}) + if LORDCHANNEL == "1": + url_lordchannel,quality_lordchannel =lordchannel(id) + if quality_lordchannel == "FULL HD": + streams['streams'].append({'title': f'{HF}LordChannel 1080p', 'url': url_lordchannel}) + else: + streams['streams'].append({'title': f'{HF}LordChannel 720p', 'url': url_lordchannel}) if FILMPERTUTTI == "1": url_filmpertutti = filmpertutti(id) if url_filmpertutti is not None: