Also Adds support for heroku env variables

Signed-off-by: lzzy12 <jhashivam2020@gmail.com>
This commit is contained in:
lzzy12 2019-12-09 17:05:57 +05:30
parent 6c66a2ad8a
commit 4f9fa3f63f

View File

@ -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()