Torrent Download:

- Supporto Serie ed episodi
This commit is contained in:
Alhaziel01
2020-05-06 20:45:48 +02:00
parent 249f8568db
commit 23662f6165
7 changed files with 147 additions and 78 deletions

View File

@@ -1342,6 +1342,7 @@ def torrent_client_installed(show_tuple=False):
def play_torrent(item, xlistitem, mediaurl):
logger.info()
# from core.support import dbg;dbg()
import time
from servers import torrent
@@ -1369,9 +1370,13 @@ def play_torrent(item, xlistitem, mediaurl):
if torr_client in ['quasar', 'elementum'] and item.downloadFilename:
torrent.elementum_download(item)
else:
time.sleep(3)
xbmc.executebuiltin("PlayMedia(" + torrent_options[selection][1] % mediaurl + ")")
torrent.mark_auto_as_watched(item)
torrent.mark_auto_as_watched(item)
while is_playing() and not xbmc.abortRequested:
time.sleep(3)
def log(texto):