From 293392612892d574bcc5a52e525b1bb496410d29 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=91=D0=BE=D1=80=D0=BE=D0=B4=D0=B8=D0=BD=20=D0=A0=D0=BE?= =?UTF-8?q?=D0=BC=D0=B0=D0=BD?= Date: Sat, 30 Apr 2022 20:23:45 +0300 Subject: [PATCH] =?UTF-8?q?=D0=9F=D0=B0=D1=80=D0=B0=D0=BC=D0=B5=D1=82?= =?UTF-8?q?=D1=80=D1=8B=20=D0=BF=D0=BE=D0=B4=D0=B4=D0=B5=D1=80=D0=B6=D0=BA?= =?UTF-8?q?=D0=B8=20=D1=80=D0=B0=D0=B7=D0=B4=D0=B0=D1=87=D0=B8=20=D0=B8=20?= =?UTF-8?q?=D0=BF=D1=80=D0=B8=D1=91=D0=BC=D0=B0=20=D1=81=D0=BE=D0=B5=D0=B4?= =?UTF-8?q?=D0=B8=D0=BD=D0=B5=D0=BD=D0=B8=D0=B9=20=D0=BF=D0=B8=D1=80=D0=BE?= =?UTF-8?q?=D0=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- resources/lib/utils/__init__.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/resources/lib/utils/__init__.py b/resources/lib/utils/__init__.py index 92dc4c4..1ec2ae9 100644 --- a/resources/lib/utils/__init__.py +++ b/resources/lib/utils/__init__.py @@ -48,11 +48,12 @@ def get_engine(torrent_uri): } else: proxy = None - return Engine(uri=file_url(torrent_uri), download_path=storage_download_dir, - encryption=1, keep_files=False, - dht_routers=["router.bittorrent.com:6881", "router.utorrent.com:6881"], use_random_port=False, + return Engine(uri=file_url(torrent_uri), + download_path=storage_download_dir, + keep_files=False, listen_port=6881, - user_agent='', enable_dht=True, proxy=proxy, debug_alerts=False) + proxy=proxy, + debug_alerts=False) while not option['storage_dir']: