Spaces:
Paused
Paused
Update test.py
Browse files
test.py
CHANGED
|
@@ -18,7 +18,7 @@ def fetch_m3u8(url):
|
|
| 18 |
|
| 19 |
#This is just for testing, ignore that endpoint and the func
|
| 20 |
@app.get("/vixcloud/manifest.m3u8")
|
| 21 |
-
async def clone2_m3u8(d:str,token:str,expires:str,h:str):
|
| 22 |
try:
|
| 23 |
m3u8 = f'{d}?token={token}&expires={expires}&h={h}'
|
| 24 |
print(m3u8)
|
|
|
|
| 18 |
|
| 19 |
#This is just for testing, ignore that endpoint and the func
|
| 20 |
@app.get("/vixcloud/manifest.m3u8")
|
| 21 |
+
async def clone2_m3u8(d:str,token:str,expires:str,h:str = None, b:str = None, request: Request = None):
|
| 22 |
try:
|
| 23 |
m3u8 = f'{d}?token={token}&expires={expires}&h={h}'
|
| 24 |
print(m3u8)
|