自动识别方向:
GET /m3u/convert?url=YOUR_URL
指定目标格式:
GET /m3u/convert?url=YOUR_URL&to=txtGET /m3u/convert?url=YOUR_URL&to=m3u
专用端点:
GET /m3u/m3u2txt?url=YOUR_URLGET /m3u/txt2m3u?url=YOUR_URL
# 自动识别:m3u 给 m3u 转 txt,txt 给 txt 转 m3u
curl "http://127.0.0.1:5000/convert?url=https://example.com/playlist.m3u" -o out.txt
# 强制转成 m3u
curl "http://127.0.0.1:5000/convert?url=https://example.com/list.txt&to=m3u" -o out.m3u
# 专用端点
curl "http://127.0.0.1:5000/m3u2txt?url=https://example.com/playlist.m3u" -o out.txt
curl "http://127.0.0.1:5000/txt2m3u?url=https://example.com/list.txt" -o out.m3u
# POST JSON
curl -X POST http://127.0.0.1:5000/convert \
-H "Content-Type: application/json" \
-d '{"url":"https://example.com/playlist.m3u","to":"txt"}'
# wget
wget "http://127.0.0.1:5000/convert?url=https://example.com/playlist.m3u" -O out.txt
#EXTINF 中的频道名,输出 名称,地址 每行一条#EXTM3U 头的标准播放列表名称,http://...、名称|http://...、纯 http://...(自动命名)