From 2d95cad3e5f5e9e6f64a6df70e627780b058c9fd Mon Sep 17 00:00:00 2001 From: DiMartinoXBMC Date: Sat, 19 Mar 2016 18:11:14 +0300 Subject: [PATCH] import opt --- Core.py | 2 -- Downloader.py | 8 ++++---- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/Core.py b/Core.py index 4e73190..7229038 100644 --- a/Core.py +++ b/Core.py @@ -18,8 +18,6 @@ along with this program. If not, see . ''' -import tempfile - import Downloader import xbmc import xbmcaddon diff --git a/Downloader.py b/Downloader.py index d334c28..468972a 100644 --- a/Downloader.py +++ b/Downloader.py @@ -21,10 +21,6 @@ import hashlib import sys -import Libtorrent -import AceStream -import Anteoloader -import Inposloader from functions import log class Torrent(): @@ -33,15 +29,19 @@ class Torrent(): def __init__(self, storageDirectory='', torrentFile='', torrentFilesDirectory='torrents'): self.get_torrent_client() if self.player == 'libtorrent': + import Libtorrent self.player = Libtorrent.Libtorrent(storageDirectory, torrentFile, torrentFilesDirectory) elif self.player == 'acestream': + import AceStream self.player = AceStream.AceStream(storageDirectory, torrentFile, torrentFilesDirectory) elif self.player == 'anteo': + import Anteoloader self.player = Anteoloader.AnteoLoader(storageDirectory, torrentFile, torrentFilesDirectory) elif self.player == 'inpos': + import Inposloader self.player = Inposloader.InposLoader(storageDirectory, torrentFile, torrentFilesDirectory) def __exit__(self):