Spaces:
Paused
Paused
Update test.py
Browse files
test.py
CHANGED
|
@@ -15,7 +15,8 @@ def fetch_m3u8(url):
|
|
| 15 |
response = requests.get(url,headers = {"User-Agent": User_Agent, "user-agent": User_Agent})
|
| 16 |
response.raise_for_status() # Raise an error for bad responses
|
| 17 |
return response.text
|
| 18 |
-
|
|
|
|
| 19 |
@app.get("/vixcloud/manifest.m3u8")
|
| 20 |
async def clone2_m3u8(d:str,token:str,expires:str,h:str):
|
| 21 |
try:
|
|
|
|
| 15 |
response = requests.get(url,headers = {"User-Agent": User_Agent, "user-agent": User_Agent})
|
| 16 |
response.raise_for_status() # Raise an error for bad responses
|
| 17 |
return response.text
|
| 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:
|