Start all torrents when playback ended (not stoped)

Tested and its working
This commit is contained in:
fernandog 2014-10-02 00:15:40 -03:00
parent 6fc904637b
commit 1e1225fdf9

View file

@ -29,6 +29,11 @@ class SubstitutePlayer(xbmc.Player):
if self.active: if self.active:
self.startAllTorrents() self.startAllTorrents()
def onPlayBackEnded(self):
self.refreshSettings()
if self.active:
self.startAllTorrents()
def startAllTorrents(self): def startAllTorrents(self):
if self.transmission: if self.transmission:
torrents = self.transmission.list() torrents = self.transmission.list()