automatically add and remove medias from melted

Signed-off-by: Tomas Neme <lacrymology@gmail.com>