From 53af74d487d20362cd36f6d4f15bb82cd58014a7 Mon Sep 17 00:00:00 2001 From: DiMartinoXBMC Date: Tue, 5 Jan 2016 22:24:42 +0300 Subject: [PATCH] resume_file fix --- .idea/workspace.xml | 128 ++++++++++++++++++++++---------------------- Anteoloader.py | 3 +- 2 files changed, 65 insertions(+), 66 deletions(-) diff --git a/.idea/workspace.xml b/.idea/workspace.xml index 5c72fd0..6019ff3 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -4,7 +4,6 @@ - @@ -193,8 +192,8 @@ - - + + @@ -207,25 +206,25 @@ - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + @@ -385,7 +384,7 @@ - + @@ -814,12 +813,6 @@ @@ -1741,10 +1739,18 @@ + + + + + + + + - - + + @@ -1757,36 +1763,28 @@ - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + - - - - - - - - \ No newline at end of file diff --git a/Anteoloader.py b/Anteoloader.py index e501229..7f85e38 100644 --- a/Anteoloader.py +++ b/Anteoloader.py @@ -355,15 +355,16 @@ class AnteoPlayer(xbmc.Player): keep_complete = False keep_incomplete = False keep_files = False + resume_file = None else: keep_complete = True keep_incomplete = True keep_files = True + resume_file=os.path.join(self.userStorageDirectory, 'torrents', os.path.basename(self.torrentUrl)+'.resume_data') dht_routers = ["router.bittorrent.com:6881","router.utorrent.com:6881"] user_agent = 'uTorrent/2200(24683)' self.pre_buffer_bytes = int(self.__settings__.getSetting("pre_buffer_bytes"))*1024*1024 - resume_file=os.path.join(self.userStorageDirectory, 'torrents', os.path.basename(self.torrentUrl)+'.resume_data') self.engine = Engine(uri=file_url(self.torrentUrl), download_path=self.userStorageDirectory, connections_limit=connections_limit, download_kbps=download_limit, upload_kbps=upload_limit,