Added Support in config for daddylive
This commit is contained in:
+3
-1
@@ -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.info import is_movie,get_info_tmdb,get_info_imdb
|
||||||
from Src.Utilities.convert import get_TMDb_id_from_IMDb_id
|
from Src.Utilities.convert import get_TMDb_id_from_IMDb_id
|
||||||
from fake_headers import Headers
|
from fake_headers import Headers
|
||||||
|
import Src.Utilities.config as config
|
||||||
|
ForwardProxy_list = config.ForwardProxy
|
||||||
|
ForwardProxy = ForwardProxy_list[0]
|
||||||
fake_headers = Headers()
|
fake_headers = Headers()
|
||||||
|
|
||||||
async def get_stayonline(link,client):
|
async def get_stayonline(link,client):
|
||||||
|
|||||||
@@ -14,7 +14,9 @@ TF_DOMAIN = SITE["Tantifilm"]['domain']
|
|||||||
LC_DOMAIN = SITE["LordChannel"]['domain']
|
LC_DOMAIN = SITE["LordChannel"]['domain']
|
||||||
SW_DOMAIN = SITE["StreamingWatch"]['domain']
|
SW_DOMAIN = SITE["StreamingWatch"]['domain']
|
||||||
AW_DOMAIN = SITE['AnimeWorld']['domain']
|
AW_DOMAIN = SITE['AnimeWorld']['domain']
|
||||||
|
SKY_DOMAIN = SITE['SkyStreaming']['domain']
|
||||||
MYSTERIUS = SITE['Mysterius']['enabled']
|
MYSTERIUS = SITE['Mysterius']['enabled']
|
||||||
|
DLHD = SITE['DaddyLiveHD']['enabled']
|
||||||
#General
|
#General
|
||||||
GENERAL = config['General']
|
GENERAL = config['General']
|
||||||
dotenv = GENERAL["load_env"]
|
dotenv = GENERAL["load_env"]
|
||||||
@@ -23,3 +25,4 @@ PORT = GENERAL["PORT"]
|
|||||||
HF = GENERAL["HF"]
|
HF = GENERAL["HF"]
|
||||||
Public_Instance = GENERAL["Public_Instance"]
|
Public_Instance = GENERAL["Public_Instance"]
|
||||||
MediaProxy = GENERAL["MediaProxy"]
|
MediaProxy = GENERAL["MediaProxy"]
|
||||||
|
ForwardProxy = GENERAL["ForwardProxy"]
|
||||||
+9
-1
@@ -20,6 +20,12 @@
|
|||||||
},
|
},
|
||||||
"AnimeWorld":{
|
"AnimeWorld":{
|
||||||
"domain":"so"
|
"domain":"so"
|
||||||
|
},
|
||||||
|
"SkyStreaming":{
|
||||||
|
"domain":"guru"
|
||||||
|
},
|
||||||
|
"DaddyLiveHD":{
|
||||||
|
"enabled":"1"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"General":{
|
"General":{
|
||||||
@@ -28,6 +34,8 @@
|
|||||||
"PORT": "8080",
|
"PORT": "8080",
|
||||||
"HF": "1",
|
"HF": "1",
|
||||||
"Public_Instance": "0",
|
"Public_Instance": "0",
|
||||||
"MediaProxy": ["test"]
|
"MediaProxy": ["Test"],
|
||||||
|
"ForwardProxy": ["Test"],
|
||||||
|
"Proxy": []
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -19,6 +19,7 @@ from slowapi.middleware import SlowAPIMiddleware
|
|||||||
from static.static import HTML
|
from static.static import HTML
|
||||||
# Configure logging
|
# Configure logging
|
||||||
MYSTERIUS = config.MYSTERIUS
|
MYSTERIUS = config.MYSTERIUS
|
||||||
|
DLHD = config.DLHD
|
||||||
HOST = config.HOST
|
HOST = config.HOST
|
||||||
PORT = int(config.PORT)
|
PORT = int(config.PORT)
|
||||||
HF = config.HF
|
HF = config.HF
|
||||||
@@ -205,6 +206,11 @@ async def addon_stream(request: Request,config, type, id,):
|
|||||||
i = i+1
|
i = i+1
|
||||||
webru_url = await webru(id,"vary",client)
|
webru_url = await webru(id,"vary",client)
|
||||||
streams['streams'].append({'title': f"{HF}Server {i} " + channel['title'],'url': webru_url})
|
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']:
|
if not streams['streams']:
|
||||||
raise HTTPException(status_code=404)
|
raise HTTPException(status_code=404)
|
||||||
return respond_with(streams)
|
return respond_with(streams)
|
||||||
|
|||||||
Reference in New Issue
Block a user