   107 # Animeunioni
 ]
 
-root =
-  path: '/'
-  title: 'Anikin kuva-arkisto'
-  breadcrumb: []
-  subalbums: []
-  pictures: []
-
 connection.connect()
 
 query = Q.nbind connection.query, connection
 
 convertCoppermine = ->
   Q.all([
-    dropAlbums().fail(-> null)
+    getAlbum('/')
     query("SET NAMES 'latin1';")
-  ]).then ->
+  ]).spread (root) ->
     convertSubcategories 0, root
   .then ->
     setThumbnail root

        subalbums: []
        pictures: []

      processAlbum edegalAlbum, parent: parent, albumId: coppermineCategory.cid

convertAlbums = (categoryId, parent) ->
  breadcrumb = makeBreadcrumb parent

if require.main is module
  convertCoppermine().then ->
    process.exit()
  .done()
