This commit is contained in:
SiHuan 2021-01-27 11:44:13 +08:00
parent 816e0ef2c3
commit aad34a3e73

View file

@ -17,7 +17,7 @@ class Ans(StdAns):
m, s = divmod(float(resp['at']), 60) m, s = divmod(float(resp['at']), 60)
h, m = divmod(m, 60) h, m = divmod(m, 60)
# print("%02d:%02d:%02d" % (h, m, s)) # print("%02d:%02d:%02d" % (h, m, s))
text = f"{resp['title_native']}\n{resp['title_chinese']}\nEP#{resp['episode']} {h:02.0f}:{m:02.0f}:{s:02.0f}\n{resp['similarity'][:5]} similarity" text = f"{resp['title_native']}\n{resp['title_chinese']}\nEP#{resp['episode']} {h:02.0f}:{m:02.0f}:{s:02.0f}\n{int(resp['similarity']*100)}% similarity"
msg = f"[CQ:video,file={video_url}]\n{text}" msg = f"[CQ:video,file={video_url}]\n{text}"
return msg return msg