Mercurial > epgrec.yaz
diff recomplete.php @ 142:481e789605e3
mod: EPGの更新と同時に予約情報を更新するように変更、ログビューアの追加
author | epgrec@park.mda.or.jp <yoneda@recorder.localnet.mda.or.jp> |
---|---|
date | Sun, 21 Mar 2010 16:42:58 +0900 |
parents | 3bed74eca373 |
children | 5b192e94f49d |
line wrap: on
line diff
--- a/recomplete.php Sun Mar 21 00:00:58 2010 +0900 +++ b/recomplete.php Sun Mar 21 16:42:58 2010 +0900 @@ -5,6 +5,7 @@ include_once( $script_path . '/config.php'); include_once( INSTALL_PATH . "/DBRecord.class.php" ); include_once( INSTALL_PATH . "/Settings.class.php" ); +include_once( INSTALL_PATH . "/recLog.inc.php" ); $settings = Settings::factory(); @@ -12,10 +13,12 @@ try{ $rrec = new DBRecord( RESERVE_TBL, "id" , $reserve_id ); + $rrec->complete = '1'; if( file_exists( INSTALL_PATH .$settings->spool . "/". $rrec->path ) ) { // 篋膣絎篋 - $rrec->complete = '1'; + reclog( "recomplete:: 篋膣ID". $rrec->id .":".$rrec->type.$rrec->channel.$rrec->title."牙祉絎篋" ); + if( $settings->mediatomb_update == 1 ) { // <c緇c鴻腆阪c純 @exec("sync"); @@ -36,10 +39,13 @@ } else { // 篋膣紊掩 + reclog( "recomplete:: 篋膣ID". $rrec->id .":".$rrec->type.$rrec->channel.$rrec->title."牙祉紊掩罔≧", E_ERROR ); $rrec->delete(); } } catch( exception $e ) { + reclog( "recomplete:: 篋膣若≪祉鴻紊掩罔≧", E_ERROR ); + reclog( "recomplete:: ".$e->getMessage()."" , E_ERROR ); exit( $e->getMessage() ); }