def procRESUME(self, workinglist = None, skipcheck = False): fulllist = self.utility.torrents["inactive"].keys() if workinglist is None: workinglist = fulllist else: workinglist = intersection(fulllist, workinglist) update = [1 for ABCTorrentTemp in workinglist if ABCTorrentTemp.actions.resume(skipcheck)] if update: self.queue.updateAndInvoke(invokeLater = False)
def procPAUSE(self, workinglist = None, release = False): fulllist = self.utility.torrents["active"].keys() if workinglist is None: workinglist = fulllist else: workinglist = intersection(fulllist, workinglist) update = [1 for ABCTorrentTemp in workinglist if ABCTorrentTemp.actions.pause(release)] if update: self.queue.UpdateRunningTorrentCounters()
def procUNSTOP(self, workinglist = None): fulllist = self.utility.torrents["inactive"].keys() if workinglist is None: workinglist = fulllist else: workinglist = intersection(fulllist, workinglist) update = [1 for ABCTorrentTemp in workinglist if ABCTorrentTemp.status.value == STATUS_STOP and ABCTorrentTemp.actions.queue()] if update: self.queue.updateAndInvoke()
def procRESUME(self, workinglist=None, skipcheck=False): fulllist = self.utility.torrents["inactive"].keys() if workinglist is None: workinglist = fulllist else: workinglist = intersection(fulllist, workinglist) update = [ 1 for ABCTorrentTemp in workinglist if ABCTorrentTemp.actions.resume(skipcheck) ] if update: self.queue.updateAndInvoke(invokeLater=False)
def procPAUSE(self, workinglist=None, release=False): fulllist = self.utility.torrents["active"].keys() if workinglist is None: workinglist = fulllist else: workinglist = intersection(fulllist, workinglist) update = [ 1 for ABCTorrentTemp in workinglist if ABCTorrentTemp.actions.pause(release) ] if update: self.queue.UpdateRunningTorrentCounters()
def procUNSTOP(self, workinglist=None): fulllist = self.utility.torrents["inactive"].keys() if workinglist is None: workinglist = fulllist else: workinglist = intersection(fulllist, workinglist) update = [ 1 for ABCTorrentTemp in workinglist if ABCTorrentTemp.status.value == STATUS_STOP and ABCTorrentTemp.actions.queue() ] if update: self.queue.updateAndInvoke()