From 8eb47adbd092e0f9e59b33f0890fd7f5e88b4e34 Mon Sep 17 00:00:00 2001 From: DiMartinoXBMC Date: Thu, 17 Mar 2016 23:08:37 +0300 Subject: [PATCH] push --- Anteoloader.py | 3 ++- SearcherABC.py | 7 ++++++- addon.xml | 2 +- resources/language/English/strings.xml | 2 +- resources/language/Russian/strings.xml | 2 +- 5 files changed, 11 insertions(+), 5 deletions(-) diff --git a/Anteoloader.py b/Anteoloader.py index a2c60eb..444b1b5 100644 --- a/Anteoloader.py +++ b/Anteoloader.py @@ -386,6 +386,7 @@ class AnteoPlayer(xbmc.Player): 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 + showMessage('[%sPlayer v%s] ' % (author, __version__), self.localize('Please Wait')) self.engine = Engine(uri=file_url(self.torrentUrl), download_path=self.userStorageDirectory, connections_limit=connections_limit, download_kbps=download_limit, upload_kbps=upload_limit, @@ -520,7 +521,7 @@ class AnteoPlayer(xbmc.Player): xbmc.sleep(2000) # very important, do not edit this, podavan i = 0 - while not xbmc.abortRequested and not self.isPlaying() and i < 50: + while not xbmc.abortRequested and not self.isPlaying() and i < 150: xbmc.sleep(200) i += 1 diff --git a/SearcherABC.py b/SearcherABC.py index 1e4a432..2d0a4c9 100644 --- a/SearcherABC.py +++ b/SearcherABC.py @@ -254,4 +254,9 @@ class SearcherABC: status = str(r1.status) + " " + r1.reason content = r1.read() self.debug('[open2] status:'+str(status)) - return content \ No newline at end of file + return content + + def showMessage(self, heading, message, times=10000): + xbmc.executebuiltin('XBMC.Notification("%s", "%s", %s, "%s")' % ( + heading.replace('"', "'"), message.replace('"', "'"), times, self.searchIcon)) + self.log(str((heading.replace('"', "'"), message.replace('"', "'"), times, self.searchIcon))) \ No newline at end of file diff --git a/addon.xml b/addon.xml index 6231ca4..0b6bcf2 100644 --- a/addon.xml +++ b/addon.xml @@ -1,5 +1,5 @@  - + diff --git a/resources/language/English/strings.xml b/resources/language/English/strings.xml index da2da48..f76c42b 100644 --- a/resources/language/English/strings.xml +++ b/resources/language/English/strings.xml @@ -3,7 +3,7 @@ Interface Language Lock Folders View Style Off - Save Files To Folder + Save Files To Folder (not FAT32) Use magnet-links Keep downloaded files Keep seeding of downloaded files diff --git a/resources/language/Russian/strings.xml b/resources/language/Russian/strings.xml index 3bd940f..a4351d8 100644 --- a/resources/language/Russian/strings.xml +++ b/resources/language/Russian/strings.xml @@ -3,7 +3,7 @@ Язык интерфейса Удерживать стиль отображения Отключено - Сохранять файлы в директорию + Сохранять файлы в директорию (не FAT32) Использовать магнет-ссылки Хранить загруженные файлы Оставаться на раздаче скачанных файлов