Esempio n. 1
0
    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)
Esempio n. 2
0
    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()
Esempio n. 3
0
    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()
Esempio n. 4
0
    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)
Esempio n. 5
0
    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()
Esempio n. 6
0
    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()