From 4f9fa3f63f1db8cb844856059ad825c8badbe2ba Mon Sep 17 00:00:00 2001 From: lzzy12 Date: Mon, 9 Dec 2019 17:05:57 +0530 Subject: [PATCH] Fix typo Also Adds support for heroku env variables Signed-off-by: lzzy12 --- bot/helper/mirror_utils/aria2_download.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bot/helper/mirror_utils/aria2_download.py b/bot/helper/mirror_utils/aria2_download.py index 9a19557..850be9b 100644 --- a/bot/helper/mirror_utils/aria2_download.py +++ b/bot/helper/mirror_utils/aria2_download.py @@ -76,7 +76,7 @@ class AriaDownloadHelper(DownloadHelper): if download.name.endswith('.torrent'): self.__is_torrent = True self.gid = download.gid - aria2.listen_to_notifications(threaded=True, on_download_start=self._listener.onDownloadStarted, + aria2.listen_to_notifications(threaded=True, on_download_start=self.__onDownloadStarted, on_download_error=self.__onDownloadError, on_download_complete=self.__onDownloadComplete) threading.Thread(target=self.__updater).start()