From acce52d081b0a7c7002af08e0817d9f13760ebe2 Mon Sep 17 00:00:00 2001 From: DiMartinoXBMC Date: Sat, 12 Mar 2016 12:17:00 +0300 Subject: [PATCH] fast filelist --- Anteoloader.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Anteoloader.py b/Anteoloader.py index 7ff652c..748bdb0 100644 --- a/Anteoloader.py +++ b/Anteoloader.py @@ -153,6 +153,14 @@ class AnteoLoader: return string def getContentList(self): + try: + from Libtorrent import Libtorrent + torrent = Libtorrent(self.storageDirectory, self.torrentFile) + return torrent.getContentList() + except: + return self.getContentList_engine() + + def getContentList_engine(self): self.setup_engine() files = [] filelist = []