LoremPizza commited on
Commit
26c3cc8
·
verified ·
1 Parent(s): cfdb0bf

Update test.py

Browse files
Files changed (1) hide show
  1. test.py +1 -1
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/x-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")
 
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")