def clearCurrent(andCancel): """ Clear the queue -- optionally clear what's currently being downloaded (cancel it) """ info('Clearing queue') dequeueNZBs([nzb.id for nzb in Hellanzb.nzbQueue], quiet=True) if andCancel: cancelCurrent() return True
def clearCurrent(andCancel): """ Clear the queue -- optionally clear what's currently being downloaded (cancel it) """ info("Clearing queue") dequeueNZBs([nzb.id for nzb in Hellanzb.nzbQueue], quiet=True) if andCancel: cancelCurrent() return True
def xmlrpc_dequeue(self, nzbId): """ Remove the NZB with specified ID from the queue """ from Hellanzb.NZBQueue import dequeueNZBs, listQueue dequeueNZBs(nzbId) return listQueue()