This commit is contained in:
jxxghp 2023-06-11 09:33:33 +08:00
parent 699fa3fa19
commit e1083fd74a
2 changed files with 4 additions and 4 deletions

View File

@ -106,7 +106,7 @@ class UserMessageChain(ChainBase):
self.post_message(title=f"{mediainfo.title} 未搜索到资源!", userid=userid)
return
# 搜索结果排序
contexts = TorrentHelper.sort_torrents(contexts)
# 更新缓存
self._user_cache[userid] = {
"type": "Torrent",

View File

@ -103,14 +103,14 @@ class Telegram(metaclass=Singleton):
if not image:
image = media.get_message_image()
if media.vote_average:
caption = "%s\n%s. [%s](%s)\n_%s%s_" % (caption,
caption = "%s\n%s. [%s](%s)\n- %s%s" % (caption,
index,
media.get_title_string(),
media.get_detail_url(),
f"类型:{media.type.value}",
f"评分:{media.vote_average}")
else:
caption = "%s\n%s. [%s](%s)\n_%s_" % (caption,
caption = "%s\n%s. [%s](%s)\n- %s" % (caption,
index,
media.get_title_string(),
media.get_detail_url(),
@ -151,7 +151,7 @@ class Telegram(metaclass=Singleton):
free = torrent.get_volume_factor_string()
seeder = f"{torrent.seeders}"
description = torrent.description
caption = f"{caption}\n{index}. 【{site_name}】[{title}]({link}) {free} {seeder}\n_{description}_"
caption = f"{caption}\n{index}. 【{site_name}】[{title}]({link}) {free} {seeder}\n- {description}"
index += 1
if userid: