public function modifyAction()
 {
     $request = $this->getRequest();
     $id = $request->getParam('id', null);
     if (is_null($id)) {
         $this->_helper->redirector('index', 'onlinelibrary');
     } else {
         $video = new Application_Model_Video();
         Application_Model_VideosMapper::i()->find($id, $video);
         if ($video->getId() == $id) {
             $form = new Application_Form_Video();
             $form->setAction($this->_helper->url('add'));
             try {
                 $_hosters = X_VlcShares_Plugins::helpers()->hoster()->getHosters();
                 $hosters = array('direct-url' => 'direct-url');
                 foreach ($_hosters as $idHoster => $pattern) {
                     $hosters[$idHoster] = $idHoster;
                 }
                 $form->hoster->setMultiOptions($hosters);
             } catch (Exception $e) {
             }
             $form->addElement('hidden', 'id');
             $form->setDefaults(array('id' => $video->getId(), 'title' => $video->getTitle(), 'idVideo' => $video->getIdVideo(), 'hoster' => $video->getHoster(), 'category' => $video->getCategory(), 'description' => $video->getDescription(), 'thumbnail' => $video->getThumbnail()));
             $this->view->video = $video;
             $this->view->form = $form;
             $this->render('add');
         } else {
             $this->_helper->redirector('index', 'onlinelibrary');
         }
     }
 }