OSDN Git Service

fix: スターチャンネル追加
[epgrec/epgrec.git] / config.php.sample
index 53b8751..1ad657c 100755 (executable)
@@ -43,13 +43,12 @@ $RECORD_MODE = array(
                'suffix' => '.ts',      // ファイル名のサフィックス
        ),
        
-       /* Examples is as follows.
-       
        1 => array(
-               'name' => 'Min PID',
-               'suffix' => '_tss.ts',
+               'name' => 'Minimum TS', // 最小のTS
+               'suffix' => '_tss.ts',  // do-record.shのカスタマイズが必要
        ),
        
+       /* Example is as follows.
        2 => array(
                'name' => '12Mbps MPEG4',
                'suffix' => '.avi',
@@ -57,10 +56,18 @@ $RECORD_MODE = array(
        */
 );
 
-// 以下、USE_KUROBON以外の定数は設定不要になりました
+
+// BSチューナーとして黒Friioを用いているのなら下のfalseをtrueに変えてください。
+
+define( "USE_KUROBON", false );
+
+
+
+//////////////////////////////////////////////////////////////////////////////
+// 以降の変数・定数はほとんどの場合、変更する必要はありません
+
 
 define( "INSTALL_PATH", dirname(__FILE__) );           // インストールパス
-define( "USE_KUROBON", false );                                                // BSチューナーとしてFriio BS/CSを使うならtrue
 
 // 以降は必要に応じて変更する
 
@@ -69,6 +76,15 @@ define( "DO_RECORD", INSTALL_PATH . "/do-record.sh" );               // レコードスクリ
 define( "COMPLETE_CMD", INSTALL_PATH . "/recomplete.php" );    // 録画終了コマンド
 define( "GEN_THUMBNAIL", INSTALL_PATH . "/gen-thumbnail.sh" ); // サムネール生成スクリプト
 
+// BS/CSでEPGを取得するチャンネル
+// 通常は変える必要はありません
+// BSでepgdumpが頻繁に落ちる場合は、受信状態のいいチャンネルに変えることで
+// 改善するかもしれません
+
+define( "BS_EPG_CHANNEL",  "211"  );   // BS
+define( "CS1_EPG_CHANNEL", "CS8"  );   // CS1
+define( "CS2_EPG_CHANNEL", "CS24" );   // CS2
+
 
 // 地上デジタルチャンネルテーブルsettings/gr_channel.phpが存在するならそれを
 // 優先する
@@ -77,6 +93,15 @@ if( file_exists( INSTALL_PATH."/settings/gr_channel.php" ) ) {
        include_once( INSTALL_PATH."/settings/gr_channel.php" );
 }
 
+//
+// settings/site_conf.phpがあればそれを優先する
+//
+if( file_exists( INSTALL_PATH."/settings/site_conf.php" ) ) {
+       unset($GR_CHANNEL_MAP);
+       unset($RECORD_MODE);
+       include_once( INSTALL_PATH."/settings/site_conf.php" );
+}
+
 
 // 全国用BSデジタルチャンネルマップ
 $BS_CHANNEL_MAP = array(
@@ -91,6 +116,7 @@ $BS_CHANNEL_MAP = array(
         "3009.ontvjapan.com" => "191",
         "3010.ontvjapan.com" => "192",
         "3011.ontvjapan.com" => "193",
+       "3012.ontvjapan.com" => "200",
         "3013.ontvjapan.com" => "211",
         "3014.ontvjapan.com" => "222",
 );
@@ -206,74 +232,6 @@ define( "PROGRAM_TBL",  "programTbl" );                                            // 番組表
 define( "CHANNEL_TBL",  "channelTbl" );                                                // チャンネルテーブル
 define( "CATEGORY_TBL", "categoryTbl" );                                       // カテゴリテーブル
 define( "KEYWORD_TBL", "keywordTbl" );                                         // キーワードテーブル
-
-// 予約テーブル
-define( "RESERVE_STRUCT", 
-       "id integer not null auto_increment primary key,".              // ID
-       "channel_disc varchar(128) not null default 'none',".   // channel disc
-       "channel_id integer not null  default '0',".                    // channel ID
-       "program_id integer not null default '0',".                             // Program ID
-       "type varchar(8) not null default 'GR',".                               // 種別(GR/BS/CS)
-       "channel varchar(10) not null default '0',".                    // チャンネル
-       "title varchar(512) not null default 'none',".                  // タイトル
-       "description varchar(512) not null default ' ',".               // 説明 text->varchar
-       "category_id integer not null default '0',".                    // カテゴリID
-       "starttime datetime not null default '1970-01-01 00:00:00',".   // 開始時刻
-       "endtime datetime not null default '1970-01-01 00:00:00',".             // 終了時刻
-       "job integer not null default '0',".                                    // job番号
-       "path blob default null,".                                                              // 録画ファイルパス
-       "complete boolean not null default '0',".                               // 完了フラグ
-       "reserve_disc varchar(128) not null default 'none',".   // 識別用hash
-       "autorec integer not null default '0',".                                // キーワードID
-       "mode integer not null default '0',".                                           //録画モード
-       "index reserve_idx (channel_disc, starttime)"                   // インデックス
-);
-
-
-// 番組表テーブル
-define( "PROGRAM_STRUCT",
-       "id integer not null auto_increment primary key,".              // ID
-       "channel_disc varchar(128) not null default 'none',".   // channel disc
-       "channel_id integer not null default '0',".                             // channel ID
-       "type varchar(8) not null default 'GR',".                               // 種別(GR/BS/CS)
-       "channel varchar(10) not null default '0',".                    // チャンネル
-       "title varchar(512) not null default 'none',".                  // タイトル
-       "description varchar(512) not null default 'none',".    // 説明 text->varchar
-       "category_id integer not null default '0',".                    // カテゴリID
-       "starttime datetime not null default '1970-01-01 00:00:00',".   // 開始時刻
-       "endtime datetime not null default '1970-01-01 00:00:00',".             // 終了時刻
-       "program_disc varchar(128) not null default 'none',".                   // 識別用hash
-       "autorec boolean not null default '1',".                                        // 自動録画有効無効
-       "index program_idx (channel_disc, starttime)"                   // インデックス
-
-);
-
-
-define( "CHANNEL_STRUCT",
-       "id integer not null auto_increment primary key,".              // ID
-       "type varchar(8) not null default 'GR',".                               // 種別
-       "channel varchar(10) not null default '0',".                    // channel
-       "name varchar(512) not null default 'none',".                   // 表示名
-       "channel_disc varchar(128) not null default 'none',".   // 識別用hash
-       "sid varchar(64) not null default 'hd'"                                 // サービスID用02/23/2010追加
-);
-
-define( "CATEGORY_STRUCT",
-       "id integer not null auto_increment primary key,".              // ID
-       "name_jp varchar(512) not null default 'none',".                // 表示名
-       "name_en varchar(512) not null default 'none',".                // 同上
-       "category_disc varchar(128) not null default 'none'"    // 識別用hash
-);
-
-
-define( "KEYWORD_STRUCT",
-       "id integer not null auto_increment primary key,".              // ID
-       "keyword varchar(512) not null default '*',".                   // 表示名
-       "type varchar(8) not null default '*',".                                // 種別
-       "channel_id integer not null default '0',".                             // channel ID
-       "category_id integer not null default '0',".                    // カテゴリID
-       "use_regexp boolean not null default '0',".                             // 正規表現を使用するなら1
-       "autorec_mode integer not null default '0',".                                           // 自動録画のモード02/23/2010追加
-       "weekofday enum ('0','1','2','3','4','5','6','7' ) default '7'"         // 曜日
-);
-?>
\ No newline at end of file
+// ログテーブル
+define( "LOG_TBL", "logTbl" );
+?>