逍遥大神的软件说明
https://www.52pojie.cn/forum.php?mod=viewthread&tid=1631141&highlight=m3u8%C5%FA%C1%BF%CF%C2%D4%D8
python调用
https://www.52pojie.cn/thread-1216587-1-1.html
[Python] 纯文本查看 复制代码import base64
import requests
import time
def postToCuteM3U8(title, m3u8Url, HEAD='', OUT='', NFAIL=0, CLOSE=0, CHECK=0, KEY='', CACHE=0, NKEY=0, NETCHECK=0, NTSCHECK=0, IDOWN=0, NCONCAT=0, AGENT='', FORMAT='mp4', DECMETHOD='cbc', **kwargs):
print('调用下载器')
data = {
'#HEAD': HEAD,
'#OUT': OUT,
'#NFAIL': NFAIL,
'#CLOSE': CLOSE,
'#CHECK': CHECK,
'#KEY': KEY,
'#CACHE': CACHE,
'#NKEY': NKEY,
'#NETCHECK': NETCHECK,
'#NTSCHECK': NTSCHECK,
'#IDOWN': IDOWN,
'#NCONCAT': NCONCAT,
'#AGENT': AGENT
}
datastr = ''
for key in data.keys():
# print(key,data[key])
if (data[key]):
datastr = datastr + str(key) + ',' + str(data[key]) + '\r\n'
datastr = datastr + title + ',' + m3u8Url # datastr是配置内容
postdata = {
"data": datastr,
"type": '2' # 模式2
}
try:
rr = requests.post('http://127.0.0.1:8787/info')
if (rr.json()['failTotal'] > 20):
print("超过20条异常数据时终止运行")
return 0
elif (rr.json()['queueTotalReal']
水平差大家凑合着用,根据返回状态码再做处理
对于这种有效期短的m3u8,有大神指点下更好的解决方法吗