changeset 70:1363ac056197

fix: getepg get program information duaring CS/BS recording.
author yoneda <yoneda@recorder.localnet.mda.or.jp>
date Tue, 03 Nov 2009 16:01:24 +0900
parents 1033324d7ecc
children 29131bd8dea3 69e0dabc765a
files getepg.php
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/getepg.php	Tue Nov 03 14:54:40 2009 +0900
+++ b/getepg.php	Tue Nov 03 16:01:24 2009 +0900
@@ -14,7 +14,7 @@
   // BSを処理する
   if( $settings->bs_tuners != 0 ) {
 	// 録画重複チェック
-	$num = DBRecord::countRecords(  RESERVE_TBL, "WHERE complete = '0' AND type = 'BS' AND endtime > now() AND starttime < addtime( now(), '00:03:05')" );
+	$num = DBRecord::countRecords(  RESERVE_TBL, "WHERE complete = '0' AND (type = 'BS' OR type = 'CS') AND endtime > now() AND starttime < addtime( now(), '00:03:05')" );
 	if( $num == 0 ) {
 	 	$cmdline = "CHANNEL=211 DURATION=180 TYPE=BS TUNER=0 MODE=0 OUTPUT=".$settings->temp_data." ".DO_RECORD . " >/dev/null 2>&1";
   		exec( $cmdline );