예제 #1
0
 /**
  * Execute the console command.
  *
  * @return mixed
  */
 public function handle()
 {
     $action = $this->argument('action');
     switch ($action) {
         case 'movie':
             $this->info('Load all movies to db');
             $this->traktTv->setType('movies');
             $this->traktTv->setExtended('full,images');
             $this->traktTv->loadWatched();
             $this->info('Done loading all movies to db');
             break;
         default:
             echo 'Use movie';
     }
 }
예제 #2
0
 /**
  * Execute the console command.
  *
  * @return mixed
  */
 public function handle()
 {
     $action = $this->argument('action');
     switch ($action) {
         case 'movie':
             $this->info('Sync 10 latest movies to db');
             $this->traktTv->setType('movies');
             $this->traktTv->setExtended('full,images');
             $this->traktTv->syncWatched($this);
             $this->info('Done syncing 10 latest movies to db');
             break;
         default:
             echo 'Use movie';
     }
 }