*/
);
-// 以下、USE_KUROBON以外の定数は設定不要になりました
+
+// BSチューナーとして黒Friioを用いているのなら下のfalseをtrueに変えてください。
+
+define( "USE_KUROBON", false );
+
+
+
+//////////////////////////////////////////////////////////////////////////////
+// 以降の変数・定数はほとんどの場合、変更する必要はありません
+
define( "INSTALL_PATH", dirname(__FILE__) ); // インストールパス
-define( "USE_KUROBON", false ); // BSチューナーとしてFriio BS/CSを使うならtrue
// 以降は必要に応じて変更する
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が存在するならそれを
// 優先する
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(
"3009.ontvjapan.com" => "191",
"3010.ontvjapan.com" => "192",
"3011.ontvjapan.com" => "193",
+ "3012.ontvjapan.com" => "200",
"3013.ontvjapan.com" => "211",
"3014.ontvjapan.com" => "222",
);
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 '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',". // 終了時刻
- "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_ch_idx (channel_disc),". // インデックス
- "index reserve_st_idx (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_ch_idx (channel_disc),". // インデックス
- "index program_st_idx (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" );
+?>