Mercurial > epgrec.yaz
comparison config.php.sample @ 87:36ac7c416bd7
merged with upstream
author | Yoshiki Yazawa <yaz@honeyplanet.jp> |
---|---|
date | Mon, 01 Mar 2010 20:51:36 +0900 |
parents | 549d799d73ae |
children | f854f6606fa5 |
comparison
equal
deleted
inserted
replaced
75:11f63ae04a96 | 87:36ac7c416bd7 |
---|---|
1 <?php | 1 <?php |
2 | |
3 // settings/gr_channel.phpが作成された場合、 | |
4 // config.php内の$GR_CHANNEL_MAPは無視されます | |
2 | 5 |
3 // 首都圏用地上デジタルチャンネルマップ | 6 // 首都圏用地上デジタルチャンネルマップ |
4 // 識別子 => チャンネル番号 | 7 // 識別子 => チャンネル番号 |
5 $GR_CHANNEL_MAP = array( | 8 $GR_CHANNEL_MAP = array( |
6 "GR27" => "27", // NHK | 9 "GR27" => "27", // NHK |
38 0 => array( | 41 0 => array( |
39 'name' => 'Full TS', // モードの表示名 | 42 'name' => 'Full TS', // モードの表示名 |
40 'suffix' => '.ts', // ファイル名のサフィックス | 43 'suffix' => '.ts', // ファイル名のサフィックス |
41 ), | 44 ), |
42 | 45 |
43 /* Examples is as follows. | |
44 | |
45 1 => array( | 46 1 => array( |
46 'name' => 'Min PID', | 47 'name' => 'Minimum TS', // 最小のTS |
47 'suffix' => '_tss.ts', | 48 'suffix' => '_tss.ts', // do-record.shのカスタマイズが必要 |
48 ), | 49 ), |
49 | 50 |
51 /* Example is as follows. | |
50 2 => array( | 52 2 => array( |
51 'name' => '12Mbps MPEG4', | 53 'name' => '12Mbps MPEG4', |
52 'suffix' => '.avi', | 54 'suffix' => '.avi', |
53 ), | 55 ), |
54 */ | 56 */ |
55 ); | 57 ); |
56 | 58 |
57 // USE_KUROBON以外の定数は設定不要になりました | 59 |
60 // BSチューナーとして黒Friioを用いているのなら下のfalseをtrueに変えてください。 | |
61 | |
62 define( "USE_KUROBON", false ); | |
63 | |
64 | |
65 | |
66 ////////////////////////////////////////////////////////////////////////////// | |
67 // 以降の変数・定数はほとんどの場合、変更する必要はありません | |
68 | |
58 | 69 |
59 define( "INSTALL_PATH", dirname(__FILE__) ); // インストールパス | 70 define( "INSTALL_PATH", dirname(__FILE__) ); // インストールパス |
60 define( "USE_KUROBON", false ); // BSチューナーとしてFriio BS/CSを使うならtrue | |
61 | 71 |
62 // 以降は必要に応じて変更する | 72 // 以降は必要に応じて変更する |
63 | 73 |
64 define( "PADDING_TIME", 180 ); // 詰め物時間 | 74 define( "PADDING_TIME", 180 ); // 詰め物時間 |
65 define( "DO_RECORD", INSTALL_PATH . "/do-record.sh" ); // レコードスクリプト | 75 define( "DO_RECORD", INSTALL_PATH . "/do-record.sh" ); // レコードスクリプト |
66 define( "COMPLETE_CMD", INSTALL_PATH . "/recomplete.php" ); // 録画終了コマンド | 76 define( "COMPLETE_CMD", INSTALL_PATH . "/recomplete.php" ); // 録画終了コマンド |
67 define( "GEN_THUMBNAIL", INSTALL_PATH . "/gen-thumbnail.sh" ); // サムネール生成スクリプト | 77 define( "GEN_THUMBNAIL", INSTALL_PATH . "/gen-thumbnail.sh" ); // サムネール生成スクリプト |
78 | |
79 // BS/CSでEPGを取得するチャンネル | |
80 // 通常は変える必要はありません | |
81 // BSでepgdumpが頻繁に落ちる場合は、受信状態のいいチャンネルに変えることで | |
82 // 改善するかもしれません | |
83 | |
84 define( "BS_EPG_CHANNEL", "211" ); // BS | |
85 define( "CS1_EPG_CHANNEL", "CS8" ); // CS1 | |
86 define( "CS2_EPG_CHANNEL", "CS24" ); // CS2 | |
87 | |
88 | |
89 // 地上デジタルチャンネルテーブルsettings/gr_channel.phpが存在するならそれを | |
90 // 優先する | |
91 if( file_exists( INSTALL_PATH."/settings/gr_channel.php" ) ) { | |
92 unset($GR_CHANNEL_MAP); | |
93 include_once( INSTALL_PATH."/settings/gr_channel.php" ); | |
94 } | |
95 | |
68 | 96 |
69 // 全国用BSデジタルチャンネルマップ | 97 // 全国用BSデジタルチャンネルマップ |
70 $BS_CHANNEL_MAP = array( | 98 $BS_CHANNEL_MAP = array( |
71 "3001.ontvjapan.com" => "101", | 99 "3001.ontvjapan.com" => "101", |
72 "3002.ontvjapan.com" => "102", | 100 "3002.ontvjapan.com" => "102", |
196 define( "KEYWORD_TBL", "keywordTbl" ); // キーワードテーブル | 224 define( "KEYWORD_TBL", "keywordTbl" ); // キーワードテーブル |
197 | 225 |
198 // 予約テーブル | 226 // 予約テーブル |
199 define( "RESERVE_STRUCT", | 227 define( "RESERVE_STRUCT", |
200 "id integer not null auto_increment primary key,". // ID | 228 "id integer not null auto_increment primary key,". // ID |
201 "channel_disc varchar(128) default 'none',". // channel disc | 229 "channel_disc varchar(128) not null default 'none',". // channel disc |
202 "channel_id integer default '0',". // channel ID | 230 "channel_id integer not null default '0',". // channel ID |
203 "program_id integer default '0',". // Program ID | 231 "program_id integer not null default '0',". // Program ID |
204 "type varchar(8) default 'GR',". // 種別(GR/BS/CS) | 232 "type varchar(8) not null default 'GR',". // 種別(GR/BS/CS) |
205 "channel varchar(10) default '0',". // チャンネル | 233 "channel varchar(10) not null default '0',". // チャンネル |
206 "title varchar(512) default 'none',". // タイトル | 234 "title varchar(512) not null default 'none',". // タイトル |
207 "description text default null,". // 説明 | 235 "description varchar(512) not null default 'none',". // 説明 text->varchar |
208 "category_id integer default '0',". // カテゴリID | 236 "category_id integer not null default '0',". // カテゴリID |
209 "starttime datetime default '1970-01-01 00:00:00',". // 開始時刻 | 237 "starttime datetime not null default '1970-01-01 00:00:00',". // 開始時刻 |
210 "endtime datetime default '1970-01-01 00:00:00',". // 終了時刻 | 238 "endtime datetime not null default '1970-01-01 00:00:00',". // 終了時刻 |
211 "job integer default '0',". // job番号 | 239 "job integer not null default '0',". // job番号 |
212 "path blob default null,". // 録画ファイルパス | 240 "path blob default null,". // 録画ファイルパス |
213 "complete boolean default '0',". // 完了フラグ | 241 "complete boolean not null default '0',". // 完了フラグ |
214 "reserve_disc varchar(128) default 'none',". // 識別用hash | 242 "reserve_disc varchar(128) not null default 'none',". // 識別用hash |
215 "autorec integer default '0',". // キーワードID | 243 "autorec integer not null default '0',". // キーワードID |
216 "mode integer default '0'" //録画モード | 244 "mode integer not null default '0',". //録画モード |
245 "index reserve_ch_idx (channel_disc),". // インデックス | |
246 "index reserve_st_idx (starttime)". | |
247 "" | |
217 ); | 248 ); |
218 | 249 |
219 | 250 |
220 // 番組表テーブル | 251 // 番組表テーブル |
221 define( "PROGRAM_STRUCT", | 252 define( "PROGRAM_STRUCT", |
222 "id integer not null auto_increment primary key,". // ID | 253 "id integer not null auto_increment primary key,". // ID |
223 "channel_disc varchar(128) default 'none',". // channel disc | 254 "channel_disc varchar(128) not null default 'none',". // channel disc |
224 "channel_id integer default '0',". // channel ID | 255 "channel_id integer not null default '0',". // channel ID |
225 "type varchar(8) default 'GR',". // 種別(GR/BS/CS) | 256 "type varchar(8) not null default 'GR',". // 種別(GR/BS/CS) |
226 "channel varchar(10) default '0',". // チャンネル | 257 "channel varchar(10) not null default '0',". // チャンネル |
227 "title varchar(512) default 'none',". // タイトル | 258 "title varchar(512) not null default 'none',". // タイトル |
228 "description text default null,". // 説明 | 259 "description varchar(512) not null default 'none',". // 説明 text->varchar |
229 "category_id integer default '0',". // カテゴリID | 260 "category_id integer not null default '0',". // カテゴリID |
230 "starttime datetime default '1970-01-01 00:00:00',". // 開始時刻 | 261 "starttime datetime not null default '1970-01-01 00:00:00',". // 開始時刻 |
231 "endtime datetime default '1970-01-01 00:00:00',". // 終了時刻 | 262 "endtime datetime not null default '1970-01-01 00:00:00',". // 終了時刻 |
232 "program_disc char(128) default 'none',". // 識別用hash | 263 "program_disc varchar(128) not null default 'none',". // 識別用hash |
233 "autorec boolean default '1'" // 自動録画有効無効 | 264 "autorec boolean not null default '1',". // 自動録画有効無効 |
265 "index program_ch_idx (channel_disc),". // インデックス | |
266 "index program_st_idx (starttime)". | |
267 "" | |
234 ); | 268 ); |
235 | 269 |
236 | 270 |
237 define( "CHANNEL_STRUCT", | 271 define( "CHANNEL_STRUCT", |
238 "id integer not null auto_increment primary key,". // ID | 272 "id integer not null auto_increment primary key,". // ID |
239 "type varchar(8) default 'GR',". // 種別 | 273 "type varchar(8) not null default 'GR',". // 種別 |
240 "channel varchar(10) default '0',". // channel | 274 "channel varchar(10) not null default '0',". // channel |
241 "name varchar(512) default 'none',". // 表示名 | 275 "name varchar(512) not null default 'none',". // 表示名 |
242 "channel_disc varchar(128) default 'none'" // 識別用hash | 276 "channel_disc varchar(128) not null default 'none',". // 識別用hash |
277 "sid varchar(64) not null default 'hd'" // サービスID用02/23/2010追加 | |
243 ); | 278 ); |
244 | 279 |
245 define( "CATEGORY_STRUCT", | 280 define( "CATEGORY_STRUCT", |
246 "id integer not null auto_increment primary key,". // ID | 281 "id integer not null auto_increment primary key,". // ID |
247 "name_jp varchar(512) default 'none',". // 表示名 | 282 "name_jp varchar(512) not null default 'none',". // 表示名 |
248 "name_en varchar(512) default 'none',". // 同上 | 283 "name_en varchar(512) not null default 'none',". // 同上 |
249 "category_disc varchar(128) default 'none'" // 識別用hash | 284 "category_disc varchar(128) not null default 'none'" // 識別用hash |
250 ); | 285 ); |
251 | 286 |
252 | 287 |
253 define( "KEYWORD_STRUCT", | 288 define( "KEYWORD_STRUCT", |
254 "id integer not null auto_increment primary key,". // ID | 289 "id integer not null auto_increment primary key,". // ID |
255 "keyword varchar(512) default '*',". // 表示名 | 290 "keyword varchar(512) not null default '*',". // 表示名 |
256 "type varchar(8) default '*',". // 種別 | 291 "type varchar(8) not null default '*',". // 種別 |
257 "channel_id integer default '0',". // channel ID | 292 "channel_id integer not null default '0',". // channel ID |
258 "category_id integer default '0',". // カテゴリID | 293 "category_id integer not null default '0',". // カテゴリID |
259 "use_regexp boolean default '0'" // 正規表現を使用するなら1 | 294 "use_regexp boolean not null default '0',". // 正規表現を使用するなら1 |
295 "autorec_mode integer not null default '0',". // 自動録画のモード02/23/2010追加 | |
296 "weekofday enum ('0','1','2','3','4','5','6','7' ) default '7'" // 曜日、同追加 | |
260 ); | 297 ); |
261 ?> | 298 ?> |