From fdcc00d69ed49fa9e945e0fa8f1a6e7f3afd2ee9 Mon Sep 17 00:00:00 2001 From: Alhaziel01 Date: Fri, 5 Nov 2021 11:30:45 +0100 Subject: [PATCH] Fix Riproduzione Torrent da Videoteca --- platformcode/platformtools.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/platformcode/platformtools.py b/platformcode/platformtools.py index ac569d59..506d1b32 100644 --- a/platformcode/platformtools.py +++ b/platformcode/platformtools.py @@ -1503,6 +1503,7 @@ def play_torrent(item, xlistitem, mediaurl): if torr_client in ['elementum'] and item.downloadFilename: torrent.elementum_download(item) + else: if item.fromLibrary and item.play_from == 'window': xlistitem.setPath(torrent_options[selection][1] % mediaurl) @@ -1511,7 +1512,7 @@ def play_torrent(item, xlistitem, mediaurl): playlist.add(torrent_options[selection][1] % mediaurl, xlistitem) xbmc_player.play(playlist, xlistitem) else: - if not item.autoplay: fakeVideo() + if not item.autoplay and item.channel != 'videolibrary': fakeVideo() xbmc.executebuiltin("PlayMedia(" + torrent_options[selection][1] % mediaurl + ")") # torrent.mark_auto_as_watched(item)