Spaces:
Paused
Paused
Update test.py
Browse files
test.py
CHANGED
|
@@ -21,7 +21,7 @@ async def clone2_m3u8(d:str,token:str,expires:str,h:str):
|
|
| 21 |
try:
|
| 22 |
m3u8 = f'{d}?token={token}&expires={expires}&h={h}'
|
| 23 |
print(m3u8)
|
| 24 |
-
m3u8_content = fetch_m3u8(
|
| 25 |
return StreamingResponse(content=m3u8_content, media_type='application/vnd.apple.mpegurl')
|
| 26 |
except requests.RequestException as e:
|
| 27 |
print(f"Failed to fetch M3U8 file: {e}")
|
|
|
|
| 21 |
try:
|
| 22 |
m3u8 = f'{d}?token={token}&expires={expires}&h={h}'
|
| 23 |
print(m3u8)
|
| 24 |
+
m3u8_content = fetch_m3u8(m3u8)
|
| 25 |
return StreamingResponse(content=m3u8_content, media_type='application/vnd.apple.mpegurl')
|
| 26 |
except requests.RequestException as e:
|
| 27 |
print(f"Failed to fetch M3U8 file: {e}")
|