Ejemplo n.º 1
0
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
Ejemplo n.º 2
0
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
Ejemplo n.º 3
0
 def xmlrpc_dequeue(self, nzbId):
     """ Remove the NZB with specified ID from the queue """
     from Hellanzb.NZBQueue import dequeueNZBs, listQueue
     dequeueNZBs(nzbId)
     return listQueue()
Ejemplo n.º 4
0
 def xmlrpc_dequeue(self, nzbId):
     """ Remove the NZB with specified ID from the queue """
     from Hellanzb.NZBQueue import dequeueNZBs, listQueue
     dequeueNZBs(nzbId)
     return listQueue()