Esempio n. 1
0
 public function search()
 {
     $name = urldecode($this->route()->getSegment(0));
     $moviedb = new MovieDB();
     $results = $moviedb->search($name);
     $this->movies = $results;
 }
Esempio n. 2
0
 public function update()
 {
     if ($this->moviedb_id == 0) {
         $this->findMovieDB();
     }
     if ($this->moviedb_id != 0) {
         $moviedb = new MovieDB();
         $moviedb->update($this);
     }
     if ($this->poster != null) {
         $localStore = nzbVR::instance()->localStore;
         $localStore->storeImage("movies/poster", $this->poster);
         $localStore->save();
     }
 }