修复tr下载器检测剩余空间时的bug

This commit is contained in:
ngfchl
2022-12-26 12:38:10 +08:00
parent 1f37c5cd16
commit e932cf56b0

View File

@@ -940,7 +940,7 @@ class TorrentInfoAdmin(AjaxAdmin): # instead of ModelAdmin
username=downloader.username,
password=downloader.password)
# 判断剩余空间大小,小于预留空间则停止推送种子
free_space = tr_client.free_space('/downloads')
free_space = tr_client.free_space(save_path)
print(FileSizeConvert.parse_2_file_size(free_space))
if free_space < total_size:
return JsonResponse(data={