コード例 #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
コード例 #2
0
ファイル: Daemon.py プロジェクト: myusuf3/hellanzb
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
コード例 #3
0
ファイル: __init__.py プロジェクト: r0mdau/hellanzb
 def xmlrpc_dequeue(self, nzbId):
     """ Remove the NZB with specified ID from the queue """
     from Hellanzb.NZBQueue import dequeueNZBs, listQueue
     dequeueNZBs(nzbId)
     return listQueue()
コード例 #4
0
ファイル: __init__.py プロジェクト: myusuf3/hellanzb
 def xmlrpc_dequeue(self, nzbId):
     """ Remove the NZB with specified ID from the queue """
     from Hellanzb.NZBQueue import dequeueNZBs, listQueue
     dequeueNZBs(nzbId)
     return listQueue()