Fix Riproduzione Torrent da Videoteca

This commit is contained in:
Alhaziel01
2021-11-05 11:30:45 +01:00
parent f24e8c8da6
commit fdcc00d69e

View File

@@ -1503,6 +1503,7 @@ def play_torrent(item, xlistitem, mediaurl):
if torr_client in ['elementum'] and item.downloadFilename: if torr_client in ['elementum'] and item.downloadFilename:
torrent.elementum_download(item) torrent.elementum_download(item)
else: else:
if item.fromLibrary and item.play_from == 'window': if item.fromLibrary and item.play_from == 'window':
xlistitem.setPath(torrent_options[selection][1] % mediaurl) 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) playlist.add(torrent_options[selection][1] % mediaurl, xlistitem)
xbmc_player.play(playlist, xlistitem) xbmc_player.play(playlist, xlistitem)
else: else:
if not item.autoplay: fakeVideo() if not item.autoplay and item.channel != 'videolibrary': fakeVideo()
xbmc.executebuiltin("PlayMedia(" + torrent_options[selection][1] % mediaurl + ")") xbmc.executebuiltin("PlayMedia(" + torrent_options[selection][1] % mediaurl + ")")
# torrent.mark_auto_as_watched(item) # torrent.mark_auto_as_watched(item)