Новый движок

This commit is contained in:
roman committed 2022-03-20 00:15:29 +03:00
1 parent 408bd32cce
commit eec57dbe38
7 files changed
+30 -33

No files matched your search

+5 -5
View File
@@ -1,10 +1,10 @@
from codequick.support import addon_data # @UnresolvedImport
from codequick.utils import urljoin_partial # @UnresolvedImport
from codequick.support import addon_data
from codequick.utils import urljoin_partial
from ..settings import option
import xbmcgui
import os
from hashlib import sha1
from pyrrent2http import Engine # @UnresolvedImport
from gorrent2http import Engine
from urllib.request import pathname2url
@@ -49,10 +49,10 @@ def get_engine(torrent_uri):
else:
proxy = None
return Engine(uri=file_url(torrent_uri), download_path=storage_download_dir,
encryption=1, keep_complete=False, keep_incomplete=False,
encryption=1, keep_files=False,
dht_routers=["router.bittorrent.com:6881", "router.utorrent.com:6881"], use_random_port=False,
listen_port=6881,
user_agent='', enable_dht=True, proxy=proxy)
user_agent='', enable_dht=True, proxy=proxy, debug_alerts=False)
while not option['storage_dir']: