mikmc5 commited on
Commit
9146b34
·
verified ·
1 Parent(s): 1204f2c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -110,7 +110,7 @@ async def manifest():
110
  return JSONResponse(content=MANIFEST)
111
 
112
  @app_.get("/catalog/tv/skyflix/genre={id}.json")
113
- async def genres(request: Request, id: str):
114
  host = request.client.host
115
  server = f'https://{host}/logo?url=' if not ('localhost' in host or '127.0.0.1' in host) else f'http://{host}/logo?url='
116
  canais_ = []
@@ -126,7 +126,7 @@ async def genres(request: Request, id: str):
126
 
127
 
128
  @app_.get("/catalog/{type}/{id}.json")
129
- async def catalog_route(request: Request, type: str, id: str):
130
  host = request.client.host
131
  server = f'https://{host}/logo?url=' if not ('localhost' in host or '127.0.0.1' in host) else f'http://{host}/logo?url='
132
 
@@ -148,7 +148,7 @@ async def search(type: str, query: str):
148
  return JSONResponse(content={"metas": results})
149
 
150
  @app_.get("/meta/{type}/{id}.json")
151
- async def meta(request: Request, type: str, id: str):
152
  host = request.client.host
153
  server = f'https://{host}/logo?url=' if not ('localhost' in host or '127.0.0.1' in host) else f'http://{host}/logo?url='
154
 
@@ -166,7 +166,7 @@ async def meta(request: Request, type: str, id: str):
166
 
167
 
168
  @app_.get("/stream/{type}/{id}.json")
169
- async def stream(request: Request, type: str, id: str):
170
  host = request.client.host
171
  server = f'https://{host}/logo?url=' if not ('localhost' in host or '127.0.0.1' in host) else f'http://{host}/logo?url='
172
 
 
110
  return JSONResponse(content=MANIFEST)
111
 
112
  @app_.get("/catalog/tv/skyflix/genre={id}.json")
113
+ async def genres(id: str):
114
  host = request.client.host
115
  server = f'https://{host}/logo?url=' if not ('localhost' in host or '127.0.0.1' in host) else f'http://{host}/logo?url='
116
  canais_ = []
 
126
 
127
 
128
  @app_.get("/catalog/{type}/{id}.json")
129
+ async def catalog_route(type: str, id: str):
130
  host = request.client.host
131
  server = f'https://{host}/logo?url=' if not ('localhost' in host or '127.0.0.1' in host) else f'http://{host}/logo?url='
132
 
 
148
  return JSONResponse(content={"metas": results})
149
 
150
  @app_.get("/meta/{type}/{id}.json")
151
+ async def meta(type: str, id: str):
152
  host = request.client.host
153
  server = f'https://{host}/logo?url=' if not ('localhost' in host or '127.0.0.1' in host) else f'http://{host}/logo?url='
154
 
 
166
 
167
 
168
  @app_.get("/stream/{type}/{id}.json")
169
+ async def stream(type: str, id: str):
170
  host = request.client.host
171
  server = f'https://{host}/logo?url=' if not ('localhost' in host or '127.0.0.1' in host) else f'http://{host}/logo?url='
172