не всегда скорость выше 8 Мбит/с

master
Бородин Роман 2019-05-05 13:35:16 +03:00
parent ce28dbd42a
commit 68687cd699
1 changed files with 2 additions and 0 deletions

View File

@ -29,6 +29,8 @@ class TorrentPlayer(xbmc.Player) :
pw.create(localize(33055), line1='0 Kbit/s') pw.create(localize(33055), line1='0 Kbit/s')
f_size = self.pyrrent_engine.file_status(f_index).size f_size = self.pyrrent_engine.file_status(f_index).size
EXPECTED_KBYTES = f_size / 3 / 1024 / 1024 EXPECTED_KBYTES = f_size / 3 / 1024 / 1024
if EXPECTED_KBYTES > 768:
EXPECTED_KBYTES = 768
while True: while True:
xbmc.sleep(500) xbmc.sleep(500)
if monitor.abortRequested() or pw.iscanceled(): if monitor.abortRequested() or pw.iscanceled():