From df82d5944e6f426de1cdd1e593aa6067c2c94b44 Mon Sep 17 00:00:00 2001 From: Shivam Jha Date: Sun, 10 Nov 2019 01:24:13 +0530 Subject: [PATCH] Fix progress update in torrent download --- bot/helper/mirror_utils/download_tools.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bot/helper/mirror_utils/download_tools.py b/bot/helper/mirror_utils/download_tools.py index fd35cf6..f4ae591 100644 --- a/bot/helper/mirror_utils/download_tools.py +++ b/bot/helper/mirror_utils/download_tools.py @@ -42,7 +42,7 @@ class DownloadHelper: if self.__is_torrent: # Waiting for the actual gid download = self.__get_download() - while download.is_complete: # Check every few seconds + while not download.is_complete: # Check every few seconds status_list = get_download_status_list() index = get_download_index(status_list, self.__get_download().gid) download = self.__get_download()