Skip to content

Commit

Permalink
fix: 做种时间异常
Browse files Browse the repository at this point in the history
  • Loading branch information
linyuan0213 committed Oct 17, 2024
1 parent 10ad625 commit a736730
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion app/brushtask.py
Original file line number Diff line number Diff line change
Expand Up @@ -412,7 +412,6 @@ def process_torrents(torrents: list[Torrent], downloader_cfg: dict, site_info: d
else:
delete_type = delete_type.value
log.info(f"【Brush】{torrent.name} 达到删种条件:{delete_type},删除任务...")
self.redis_store.hdel('torrent', torrent_id)
if sendmessage:
__send_message(task_name, delete_type, torrent.name, downloader_cfg.get("name"),
StringUtils.str_filesize(torrent.size), StringUtils.str_filesize(torrent.downloaded),
Expand Down
2 changes: 1 addition & 1 deletion app/downloader/client/qbittorrent.py
Original file line number Diff line number Diff line change
Expand Up @@ -743,7 +743,7 @@ def torrent_properties(self, torrent):
# 做种时间
torrent_obj.seeding_time = (date_now - \
torrent.get("completion_on")) if torrent.get(
"completion_on") else 0
"completion_on") > 0 else 0
# 分享率
torrent_obj.ratio = torrent.get("ratio") or 0
# 上传量
Expand Down

0 comments on commit a736730

Please sign in to comment.