view config.php.sample @ 93:80cc05b420af

fix: $*_CHANNEL_MAPに存在しないチャンネルの番組を取得する際のエラーを修正
author epgrec@park.mda.or.jp <yoneda@recorder.localnet.mda.or.jp>
date Tue, 02 Mar 2010 23:21:17 +0900
parents 549d799d73ae
children f854f6606fa5
line wrap: on
line source

<?php

// settings/gr_channel.php篏翫
// config.php$GR_CHANNEL_MAP∴障

// 薤遵遺吾帥c潟
// 茘ュ => c潟
$GR_CHANNEL_MAP = array(
	"GR27" => "27",		// NHK
	"GR26" => "26",		// 
	"GR25" => "25",		// ャ
	"GR22" => "22",		// 延根
	"GR21" => "21",		// 
	"GR24" => "24",		// 
	"GR23" => "23",		// 
//	"GR20" => "20",		// MX TV
//	"GR18" => "18",		// 腑
	"GR30" => "30",		// 
//	"GR32" => "32",		// 
	"GR28" => "28",		// 紊у
);

/*
// 紊ч医冴吾帥c潟鐚鐚
$GR_CHANNEL_MAP = array(
	"GR24" => "24",		// NHK
	"GR13" => "13",		// 
	"GR16" => "16",		// 罸
	"GR15" => "15",		// 
	"GR17" => "17",		// ∵タ
	"GR14" => "14",		// 茯紕
	"GR18" => "18",		// 紊ч
);
*/


// 牙祉≪若鐚option鐚

$RECORD_MODE = array(
	//  0綽с紊岩с
	0 => array(
		'name' => 'Full TS',	// ≪若茵腓阪
		'suffix' => '.ts',	// <ゃ泣c
	),
	
	1 => array(
		'name' => 'Minimum TS',	// 絨TS
		'suffix' => '_tss.ts',	// do-record.sh鴻帥ゃ冴綽荀
	),
	
	/* Example is as follows.
	2 => array(
		'name' => '12Mbps MPEG4',
		'suffix' => '.avi',
	),
	*/
);


// BSャ若若藥Friio筝falsetrue紊

define( "USE_KUROBON", false );



//////////////////////////////////////////////////////////////////////////////
// 篁ラ紊違糸違祉翫紊眼綽荀障


define( "INSTALL_PATH", dirname(__FILE__) );		// ゃ潟鴻若

// 篁ラ綽荀綽紊眼

define( "PADDING_TIME", 180 );						// 荅違
define( "DO_RECORD", INSTALL_PATH . "/do-record.sh" );		// 潟若鴻
define( "COMPLETE_CMD", INSTALL_PATH . "/recomplete.php" );	// 牙紫篋潟潟
define( "GEN_THUMBNAIL", INSTALL_PATH . "/gen-thumbnail.sh" );	// 泣若鴻

// BS/CSEPG緇c潟
// 絽吾紊綽荀障
// BSepgdump紫純<翫篆∞倶c潟紊
// 劫障

define( "BS_EPG_CHANNEL",  "211"  );	// BS
define( "CS1_EPG_CHANNEL", "CS8"  );	// CS1
define( "CS2_EPG_CHANNEL", "CS24" );	// CS2


// 遺吾帥c潟若settings/gr_channel.php絖
// 
if( file_exists( INSTALL_PATH."/settings/gr_channel.php" ) ) {
	unset($GR_CHANNEL_MAP);
	include_once( INSTALL_PATH."/settings/gr_channel.php" );
}


// 順BS吾帥c潟
$BS_CHANNEL_MAP = array(
        "3001.ontvjapan.com" => "101",
        "3002.ontvjapan.com" => "102",
        "3003.ontvjapan.com" => "103",
        "3004.ontvjapan.com" => "141",
        "3005.ontvjapan.com" => "151",
        "3006.ontvjapan.com" => "161",
        "3007.ontvjapan.com" => "171",
        "3008.ontvjapan.com" => "181",
        "3009.ontvjapan.com" => "191",
        "3010.ontvjapan.com" => "192",
        "3011.ontvjapan.com" => "193",
        "3013.ontvjapan.com" => "211",
        "3014.ontvjapan.com" => "222",
);

if( USE_KUROBON ) {
	$BS_CHANNEL_MAP = array(
    	    "3001.ontvjapan.com" => "B10",
	        "3002.ontvjapan.com" => "B10",
	        "3003.ontvjapan.com" => "B11",
	        "3004.ontvjapan.com" => "B8",
	        "3005.ontvjapan.com" => "B1",
	        "3006.ontvjapan.com" => "B2",
	        "3007.ontvjapan.com" => "B4",
	        "3008.ontvjapan.com" => "B9",
	        "3009.ontvjapan.com" => "B3",
	        "3010.ontvjapan.com" => "B3",
	        "3011.ontvjapan.com" => "B3",
	        "3013.ontvjapan.com" => "B5",
	        "3014.ontvjapan.com" => "B7",
	);
}

// 順CS吾帥c潟
$CS_CHANNEL_MAP = array(
	"1002.ontvjapan.com"		=>	"CS2", // 237,	//	"鴻帥種鐔"
	"1086.ontvjapan.com"		=>	"CS2", // 239,	// "ユ糸鐔鐔鐚鐚"
	"306ch.epgdata.ontvjapan"	=>	"CS2", // 306,	// "吾鐚o竺鐚鐚"

	"100ch.epgdata.ontvjapan"	=>	"CS4", // 100,	// "鐔鐚"
	"1025.ontvjapan.com"		=>	"CS4", // 256,	// "鐚鴻若鐚ワ竺鐚逸汐"
	"1016.ontvjapan.com"		=>	"CS4", // 312,	// "鐚鐚鐚"
	"1018.ontvjapan.com"		=>	"CS4", // 322,	// "鴻若鴻激c種軸鐚"
	"1046.ontvjapan.com"		=>	"CS4", // 331,	// "若ャ若潟"
	"194ch.epgdata.ontvjapan"	=>	"CS4", // 194,	// "ゃ潟帥若若鐚器雫"
	"1213.ontvjapan.com"		=>	"CS4", // 334,	// "ャ若潟祉c冴"

	"1010.ontvjapan.com"		=>	"CS6", // 221,	// "掩c潟"
	"1005.ontvjapan.com"		=>	"CS6", // 222,	// "茵"
	"1008.ontvjapan.com"		=>	"CS6", // 223,	// "c潟鐚鐚ワ治鐚"
	"1009.ontvjapan.com"		=>	"CS6", // 224,	// "羇獅激c"
	"1133.ontvjapan.com"		=>	"CS6", // 292,	// "篁e絨c潟"
	"1003.ontvjapan.com"		=>	"CS6", // 238,	// "鴻帥若祉激"
	"1006.ontvjapan.com"		=>	"CS6", // 310,	// "鴻若若"
	"1014.ontvjapan.com"		=>	"CS6", // 311,	// "鐚¥叱鐚"
	"1204.ontvjapan.com"		=>	"CS6", // 343,	// "激с吾c潟"

	"1059.ontvjapan.com"		=>	"CS8", // 55,	//  "激сc潟"

	"1217.ontvjapan.com"		=>	"CS10", // 228,	// "吟祉激"
	"800ch.epgdata.ontvjapan"	=>	"CS10", // 800,	// "鴻c鰹示鐚わ鐚鐚"
	"801ch.epgdata.ontvjapan"	=>	"CS10", // 801,	// "鴻c鰹鐚鐚"
	"802ch.epgdata.ontvjapan"	=>	"CS10", // 802,	// "鴻c鰹鐚鐚"

	"1028.ontvjapan.com"		=>	"CS12", // 260,	// "眼c潟"
	"1092.ontvjapan.com"		=>	"CS12", // 303,	// "c潟"
	"1019.ontvjapan.com"		=>	"CS12", // 323,	// "鐚鐚器雫"
	"1024.ontvjapan.com"		=>	"CS12", // 324,	// "ャ若吾祉"
	"1067.ontvjapan.com"		=>	"CS12", // 352,	// "ャャ若鴻帥"
	"1070.ontvjapan.com"		=>	"CS12", // 353,	// "鐚鐚鐚c若"
	"1069.ontvjapan.com"		=>	"CS12", // 354,	// "鐚o汐鐚鐔"
	"361ch.epgdata.ontvjapan"	=>	"CS12", // 361,	// "吾c鴻祉≪"

	"1041.ontvjapan.com"		=>	"CS14", // 251,	// "鐚鴻若鐚"
	"1042.ontvjapan.com"		=>	"CS14", // 252,	// "鐚鴻若鐚"
	"1043.ontvjapan.com"		=>	"CS14", // 253,	// "鐚鴻若鐚逸鐔鐔鐚"
	"1026.ontvjapan.com"		=>	"CS14", // 254,	// "鐚э次鐚鐚駕次"
	"1040.ontvjapan.com"		=>	"CS14", // 255,	// "鐔鐔鐔誌次鴻若鐚"

	"305ch.epgdata.ontvjapan"	=>	"CS16", // 305,	// "c潟羃"
	"1201.ontvjapan.com"		=>	"CS16", // 333,	// "鐚¥軸-鐚"
	"1050.ontvjapan.com"		=>	"CS16", // 342,	// "鴻若c潟"
	"803ch.epgdata.ontvjapan"	=>	"CS16", // 803,	// "鴻c鰹鐚鐚"
	"804ch.epgdata.ontvjapan"	=>	"CS16", // 804,	// "鴻c鰹鐚鐚"
	"1207.ontvjapan.com"		=>	"CS16", // 290,	// "鐚鰹自鐚鴻誌竺鐚器次鐚э璽"

	"1007.ontvjapan.com"		=>	"CS18", // 240,	// "若若刻示鐚"
	"1027.ontvjapan.com"		=>	"CS18", // 262,	// "眼若"
	"1074.ontvjapan.com"		=>	"CS18", // 314,	// "鐚鐔鐚鐔鐚鐚"

	"1073.ontvjapan.com"		=>	"CS20", // 258,	// "吾鐚鐚鐚"
	"1072.ontvjapan.com"		=>	"CS20", // 302,	// "吾鐚鐚鐚"
	"1047.ontvjapan.com"		=>	"CS20", // 332,	// "≪"
	"1062.ontvjapan.com"		=>	"CS20", // 340,	// "c鴻"
	"1193.ontvjapan.com"		=>	"CS20", // 341,	// "≪"

	"160ch.epgdata.ontvjapan"	=>	"CS22", // 160,	// "鐚-鐚器滋鐚潟"
	//"1120.ontvjapan.com"		=>	"CS22", // 161,	// "鐚縁雫鐚"
	"185ch.epgdata.ontvjapan"	=>	"CS22", // 185,	// "ゃ鐚鐚鐚鐚鐚器雫"
	"1015.ontvjapan.com"		=>	"CS22", // 293,	// "<弱"
	"3201.ontvjapan.com"		=>	"CS22", // 301,	// "鐚器滋鐚潟c潟"
	"1090.ontvjapan.com"		=>	"CS22", // 304,	// "c冴若c潟"
	"1022.ontvjapan.com"		=>	"CS22", // 325,	// "MUSIC ON! TV"
	"1045.ontvjapan.com"		=>	"CS22", // 330,	// "冴鴻若激с"
	"1076.ontvjapan.com"		=>	"CS22", // 351,	// "鐚器滋鐚潟ャ若鴻若"

	"1068.ontvjapan.com"		=>	"CS24", // 257,	// "ャ鐚э"
	"5004.ontvjapan.com"		=>	"CS24", // 291,	// "fashion TV"
	"300ch.epgdata.ontvjapan"	=>	"CS24", // 300,	// "ャ"
	"1023.ontvjapan.com"		=>	"CS24", // 320,	// "潟ャ若吾鐚器雫"
	"1208.ontvjapan.com"		=>	"CS24", // 321,	// "Music Japan TV"
	"2002.ontvjapan.com"		=>	"CS24", // 350,	// "ャ鐚鐚ワ七鐚鰹鐚"
	/*
	"110ch.epgdata.ontvjapan"	=>	"CS22", 110,	// "潟潟若帥"
	"101ch.epgdata.ontvjapan"	=>	"CS22", 101,	// "絎紂≪c潟"
	"147ch.epgdata.ontvjapan"	=>	"CS22", 147,	// "鐚o竺ユ腟ゃ"
	*/
);

// DB若宴篁ヤ紊眼с

define( "RESERVE_TBL",  "reserveTbl" );						// 篋膣若
define( "PROGRAM_TBL",  "programTbl" );						// 腟茵
define( "CHANNEL_TBL",  "channelTbl" );						// c潟若
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',".			// c潟
	"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',".			// c潟
	"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'"					// 泣若ID02/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',".				// 罩h頫憗篏睡1
	"autorec_mode integer not null default '0',".						// 牙祉≪若02/23/2010菴遵
	"weekofday enum ('0','1','2','3','4','5','6','7' ) default '7'"		// ャ菴遵
);
?>