fix #949
This commit is contained in:
parent
d790e6b731
commit
277b252ad8
@ -217,11 +217,6 @@ class MessageChain(ChainBase):
|
|||||||
start = _current_page * self._page_size
|
start = _current_page * self._page_size
|
||||||
end = start + self._page_size
|
end = start + self._page_size
|
||||||
if cache_type == "Torrent":
|
if cache_type == "Torrent":
|
||||||
# 更新缓存
|
|
||||||
user_cache[userid] = {
|
|
||||||
"type": "Torrent",
|
|
||||||
"items": cache_list[start:end]
|
|
||||||
}
|
|
||||||
# 发送种子数据
|
# 发送种子数据
|
||||||
self.__post_torrents_message(channel=channel,
|
self.__post_torrents_message(channel=channel,
|
||||||
title=_current_media.title,
|
title=_current_media.title,
|
||||||
@ -260,11 +255,6 @@ class MessageChain(ChainBase):
|
|||||||
# 加一页
|
# 加一页
|
||||||
_current_page += 1
|
_current_page += 1
|
||||||
if cache_type == "Torrent":
|
if cache_type == "Torrent":
|
||||||
# 更新缓存
|
|
||||||
user_cache[userid] = {
|
|
||||||
"type": "Torrent",
|
|
||||||
"items": cache_list
|
|
||||||
}
|
|
||||||
# 发送种子数据
|
# 发送种子数据
|
||||||
self.__post_torrents_message(channel=channel,
|
self.__post_torrents_message(channel=channel,
|
||||||
title=_current_media.title,
|
title=_current_media.title,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user