 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?

mimeContainerMap =
    audio: 'object.container.album.musicAlbum'

makeContainer = (dir, sortedFiles, callback) ->
    contentType = getContainerType sortedFiles
    media =

        location: file
     switch type
        when 'audio'
            parseTags file, (data) ->
                media.creator = media.artist = data.artist?[0] or 'Unknown'
                media.title = data.title or 'Untitled'
                media.album = data.album or 'Untitled'
                media.genre = data.genre?[0] if data.genre?[0]?
                media.track = data.track?.no if data.track?.no > 0
                media.date = data.year if data.year > 0
                callback null, media
        else
            media.creator = 'Unknown'
            media.title = path.basename file, path.extname file
