Spaces:
Paused
Paused
Update test.py
Browse files
test.py
CHANGED
|
@@ -23,7 +23,7 @@ async def clone_m3u8(d: str = None):
|
|
| 23 |
try:
|
| 24 |
d = unquote(d)
|
| 25 |
m3u8_content = fetch_m3u8(d)
|
| 26 |
-
return StreamingResponse(content=m3u8_content, media_type='application/
|
| 27 |
except requests.RequestException as e:
|
| 28 |
print(f"Failed to fetch M3U8 file: {e}")
|
| 29 |
raise HTTPException(status_code=404, detail="M3U8 content not found")
|
|
|
|
| 23 |
try:
|
| 24 |
d = unquote(d)
|
| 25 |
m3u8_content = fetch_m3u8(d)
|
| 26 |
+
return StreamingResponse(content=m3u8_content, media_type='application/vnd.apple.mpegurl')
|
| 27 |
except requests.RequestException as e:
|
| 28 |
print(f"Failed to fetch M3U8 file: {e}")
|
| 29 |
raise HTTPException(status_code=404, detail="M3U8 content not found")
|