# HG changeset patch # User yoneda # Date 1257227504 -32400 # Node ID 3d6e7c60689662e5f23b70c4fff9f9c752dedcb1 # Parent f8af9716f02145b89ce62aaa1cec313b459b8aae testing: auto record with mode diff -r f8af9716f021 -r 3d6e7c606896 Keyword.class.php --- a/Keyword.class.php Fri Oct 09 19:22:40 2009 +0900 +++ b/Keyword.class.php Tue Nov 03 14:51:44 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 f8af9716f021 -r 3d6e7c606896 Settings.class.php --- a/Settings.class.php Fri Oct 09 19:22:40 2009 +0900 +++ b/Settings.class.php Tue Nov 03 14:51:44 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 { // 初回起動 @@ -100,6 +110,11 @@ // 1分あたりの高さ $xml->height_per_hour = 120; + // 8月14日版以降に追加した設定項目 + + // キーワード自動録画の録画モード + $xml->autorec_mode = 0; + $xml->save(); return $xml; @@ -125,4 +140,4 @@ $this->asXML(INSTALL_PATH . self::CONFIG_XML); } } -?> +?> \ No newline at end of file diff -r f8af9716f021 -r 3d6e7c606896 envSetting.php --- a/envSetting.php Fri Oct 09 19:22:40 2009 +0900 +++ b/envSetting.php Tue Nov 03 14:51:44 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 f8af9716f021 -r 3d6e7c606896 templates/envSetting.html --- a/templates/envSetting.html Fri Oct 09 19:22:40 2009 +0900 +++ b/templates/envSetting.html Tue Nov 03 14:51:44 2009 +0900 @@ -105,6 +105,20 @@ + +

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

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

mediatomb連係機能

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