 ###
 angular
     .module 'gummyApp'
-    .controller 'GetInfosCtrl', ($scope, $rootScope, $trakt, $db) ->
+    .controller 'GetInfosCtrl', ($scope, $rootScope, $trakt, $db, $timeout) ->
 
 
         ###*
          # Movie model
          # @attribute movie
         ###
-        $scope.movie = $rootScope.seeking
+        $scope.movie = $rootScope.seeking.movie
 
 
         ###*

         # @method close
        ###
        $scope.close = () ->
            $rootScope.seeking = null


        ###*


            # Sanitize
            _tmp = angular.copy movie
            _tmp.path = $scope.movie.path

            # Update movie to db
            $db.movies.update { path: $scope.movie.path }, _tmp, {}, (e, items) ->
                if e then console.error "MovieUpdate", e
                else if items <= 0 then console.error "MovieUpdate", "Nothing updated"
                else
                    $rootScope.seeking.movie = _tmp
                    $scope.close()


        # GOGO GADGETO SEEKING
