# HG changeset patch # User yoneda # Date 1257227680 -32400 # Node ID 1033324d7ecc965a377e743d8c70fd1878c9706c # Parent 25736d81c66d6547a03970ff9b7f66efbeb52b6d# Parent 3d6e7c60689662e5f23b70c4fff9f9c752dedcb1 Merge branch 'origin/testing' diff -r 25736d81c66d -r 1033324d7ecc Keyword.class.php --- a/Keyword.class.php Wed Oct 21 16:57:26 2009 +0900 +++ b/Keyword.class.php Tue Nov 03 14:54:40 2009 +0900 @@ -72,7 +72,7 @@ foreach( $precs as $rec ) { try { if( $rec->autorec ) { - Reservation::simple( $rec->id, $this->id ); + Reservation::simple( $rec->id, $this->id, $this->settings->autorec_mode ); usleep( 100 ); // あんまり時間を空けないのもどう? } } diff -r 25736d81c66d -r 1033324d7ecc Settings.class.php --- a/Settings.class.php Wed Oct 21 16:57:26 2009 +0900 +++ b/Settings.class.php Tue Nov 03 14:54:40 2009 +0900 @@ -9,7 +9,17 @@ if( file_exists( INSTALL_PATH . self::CONFIG_XML ) ) { $xmlfile = file_get_contents(INSTALL_PATH . self::CONFIG_XML); - return new self($xmlfile); + $obj = new self($xmlfile); + + // 8月14日以降に追加した設定項目の自動生成 + + // キーワード自動録画の録画モード + if( $obj->exists("autorec_mode") == 0 ) { + $obj->autorec_mode = 0; + $obj->save(); + } + + return $obj; } else { // 初回起動 @@ -103,6 +113,11 @@ // 1分あたりの高さ $xml->height_per_hour = 120; + // 8月14日版以降に追加した設定項目 + + // キーワード自動録画の録画モード + $xml->autorec_mode = 0; + $xml->save(); return $xml; @@ -128,4 +143,4 @@ $this->asXML(INSTALL_PATH . self::CONFIG_XML); } } -?> +?> \ No newline at end of file diff -r 25736d81c66d -r 1033324d7ecc envSetting.php --- a/envSetting.php Wed Oct 21 16:57:26 2009 +0900 +++ b/envSetting.php Tue Nov 03 14:54:40 2009 +0900 @@ -7,6 +7,7 @@ $smarty = new Smarty(); $smarty->assign( "settings", $settings ); +$smarty->assign( "record_mode", $RECORD_MODE ); $smarty->assign( "install_path", INSTALL_PATH ); $smarty->assign( "post_to", "postsettings.php" ); $smarty->assign( "sitetitle", "環境設定設定" ); diff -r 25736d81c66d -r 1033324d7ecc templates/envSetting.html --- a/templates/envSetting.html Wed Oct 21 16:57:26 2009 +0900 +++ b/templates/envSetting.html Tue Nov 03 14:54:40 2009 +0900 @@ -114,6 +114,20 @@ + +

キーワード自動録画の録画モード

+
+
キーワード自動録画を行う番組の録画モードを設定します。config.phpの$RECORD_MODEに複数の録画モードを登録しているのであれば、この設定でキーワード自動録画の録画モードを変更できます。デフォルトはモード0です。 +
+ +
+ + +

mediatomb連係機能

この設定を「使う」にすると録画した番組のタイトルと概要をmediatombに反映させます。mediatombを使用していない方は「使わない」に設定してください。なお、この設定を利用するにはmediatomb側の設定も必要になります。詳しくはドキュメントを参照してください。