 mediaServer.on 'error', (e) -> throw e
 
 mediaServer.on 'ready', ->
-    addContainer 0, dir, (err) -> throw err if err?
-    @announce()
+    addContainer 0, dir, (err, id) -> throw err if err?


addContainer = (parentId, dir, callback) ->
    fs.readdir dir, (err, files) ->
        sortFiles dir, files, (err, sortedFiles) ->
            makeContainer dir, sortedFiles, (err, container) ->
                mediaServer.addMedia parentId, container, (err, id) ->

        location: dir
    
    if contentType is 'audio'
        parseTags sortedFiles[contentType][0], (data) ->
            media.creator = media.artist =
                if data.albumartist.length > 0
                    data.albumartist[0]
                else if data.artist.length > 0
                    data.artist
                else
                    'Unknown'
            media.title = data.album or path.basename(dir).split('/')[0]
            callback null, media
    else
        media.creator = 'Unknown'
        media.title = path.basename(dir).split('/')[0]
