Remove details from server

This commit is contained in:
Fergal Moran
2022-04-11 15:28:03 +01:00
parent 54f6ac5f40
commit d3ff410ace
2 changed files with 26 additions and 25 deletions

View File

@@ -15,15 +15,9 @@ from server.lib.xtream import XTream
logging.basicConfig(format="%(levelname)s:%(message)s", level=logging.DEBUG)
logger = logging.getLogger(__name__)
provider = XTream(
config.provider['server'],
config.provider['username'],
config.provider['password']
)
epg = EPGParser(
config.provider['epgurl']
)
# epg = EPGParser(
# config.provider['epgurl']
# )
app = FastAPI()
origins = [
"https://dev-streams.fergl.ie:3000",
@@ -43,10 +37,17 @@ app.add_middleware(
)
@app.get("/epg/{channel_id}")
async def get_channel_epg(channel_id):
listings = epg.get_listings(channel_id)
return listings
# @app.get("/epg/{channel_id}")
# async def get_channel_epg(channel_id):
# listings = epg.get_listings(channel_id)
# return listings
def __get_provider(request):
return XTream(
config.provider['server'],
config.provider['username'],
config.provider['password']
)
@app.get("/channels")