Esempio n. 1
0
def onLoad():
    global QueueControl

    # load configuration
    mt.config.load("packages/mp3extract/mp3extract.cfg")
    
    # start up our queue monitor.
    QueueControl = QueueController()
    QueueControl.start()

    if ( mt.packages.http ):        
        http = mt.packages.http
        http.addFile("/mp3extract/images/youtube.png", "packages/mp3extract/images/youtube.png")   
        http.addFile("/mp3extract/images/icon.png", "packages/mp3extract/images/icon.png") 
Esempio n. 2
0
def onLoad():
    global QueueControl

    # load configuration
    mt.config.load("packages/dlmanager/dlmanager.cfg")
    
    # start up our queue monitor.
    QueueControl = QueueController()
    QueueControl.start()

    if ( mt.packages.http ):        
        mt.events.register("HTTP POST /packages/dlmanager/queue/", onUpload)
        http = mt.packages.http
        http.addFile("/dlmanager/images/nzb.png", "packages/dlmanager/images/nzb.png")
        http.addFile("/dlmanager/images/par2.png", "packages/dlmanager/images/par2.png")
        http.addFile("/dlmanager/images/torrent.png", "packages/dlmanager/images/torrent.png")
        http.addFile("/dlmanager/images/unrar.png", "packages/dlmanager/images/unrar.png")   
        http.addFile("/dlmanager/images/icon.png", "packages/dlmanager/images/icon.png")