pull/5/head
DiMartinoXBMC 2016-03-17 23:08:37 +03:00
parent 1974c5a41a
commit 8eb47adbd0
5 changed files with 11 additions and 5 deletions

View File

@ -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

View File

@ -255,3 +255,8 @@ class SearcherABC:
content = r1.read()
self.debug('[open2] status:'+str(status))
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)))

View File

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<addon id="plugin.video.torrenter" name="Torrenter" version="2.5.1" provider-name="DiMartino">
<addon id="plugin.video.torrenter" name="Torrenter" version="2.5.1b" provider-name="DiMartino">
<requires>
<import addon="xbmc.python" version="2.1.0"/>
<import addon="script.module.libtorrent"/>

View File

@ -3,7 +3,7 @@
<string id="30001">Interface Language</string>
<string id="30002">Lock Folders View Style</string>
<string id="30003">Off</string>
<string id="30004">Save Files To Folder</string>
<string id="30004">Save Files To Folder (not FAT32)</string>
<string id="30007">Use magnet-links</string>
<string id="30008">Keep downloaded files</string>
<string id="30009">Keep seeding of downloaded files</string>

View File

@ -3,7 +3,7 @@
<string id="30001">Язык интерфейса</string>
<string id="30002">Удерживать стиль отображения</string>
<string id="30003">Отключено</string>
<string id="30004">Сохранять файлы в директорию</string>
<string id="30004">Сохранять файлы в директорию (не FAT32)</string>
<string id="30007">Использовать магнет-ссылки</string>
<string id="30008">Хранить загруженные файлы</string>
<string id="30009">Оставаться на раздаче скачанных файлов</string>