Added Support in config for daddylive

This commit is contained in:
UrloMythus
2024-09-29 14:04:23 +02:00 Unverified
parent fa804b7aea
commit cf9431c137
4 changed files with 21 additions and 2 deletions
+3 -1
View File
@@ -3,7 +3,9 @@ from bs4 import BeautifulSoup,SoupStrainer
from Src.Utilities.info import is_movie,get_info_tmdb,get_info_imdb
from Src.Utilities.convert import get_TMDb_id_from_IMDb_id
from fake_headers import Headers
import Src.Utilities.config as config
ForwardProxy_list = config.ForwardProxy
ForwardProxy = ForwardProxy_list[0]
fake_headers = Headers()
async def get_stayonline(link,client):
+3
View File
@@ -14,7 +14,9 @@ TF_DOMAIN = SITE["Tantifilm"]['domain']
LC_DOMAIN = SITE["LordChannel"]['domain']
SW_DOMAIN = SITE["StreamingWatch"]['domain']
AW_DOMAIN = SITE['AnimeWorld']['domain']
SKY_DOMAIN = SITE['SkyStreaming']['domain']
MYSTERIUS = SITE['Mysterius']['enabled']
DLHD = SITE['DaddyLiveHD']['enabled']
#General
GENERAL = config['General']
dotenv = GENERAL["load_env"]
@@ -23,3 +25,4 @@ PORT = GENERAL["PORT"]
HF = GENERAL["HF"]
Public_Instance = GENERAL["Public_Instance"]
MediaProxy = GENERAL["MediaProxy"]
ForwardProxy = GENERAL["ForwardProxy"]
+9 -1
View File
@@ -20,6 +20,12 @@
},
"AnimeWorld":{
"domain":"so"
},
"SkyStreaming":{
"domain":"guru"
},
"DaddyLiveHD":{
"enabled":"1"
}
},
"General":{
@@ -28,6 +34,8 @@
"PORT": "8080",
"HF": "1",
"Public_Instance": "0",
"MediaProxy": ["test"]
"MediaProxy": ["Test"],
"ForwardProxy": ["Test"],
"Proxy": []
}
}
+6
View File
@@ -19,6 +19,7 @@ from slowapi.middleware import SlowAPIMiddleware
from static.static import HTML
# Configure logging
MYSTERIUS = config.MYSTERIUS
DLHD = config.DLHD
HOST = config.HOST
PORT = int(config.PORT)
HF = config.HF
@@ -205,6 +206,11 @@ async def addon_stream(request: Request,config, type, id,):
i = i+1
webru_url = await webru(id,"vary",client)
streams['streams'].append({'title': f"{HF}Server {i} " + channel['title'],'url': webru_url})
if id in webru_dlhd:
if DLHD == "1":
i = i+1
webru_url = await webru(id,"dlhd",client)
streams['streams'].append({'title': f"{HF}Server {i} " + channel['title'],'url': webru_url})
if not streams['streams']:
raise HTTPException(status_code=404)
return respond_with(streams)