diff mediatomb.php @ 13:b0fc647167f5

modified: mediatomb.php modified: recomplete.php
author yoneda <yoneda@debian.localnet.mda.or.jp>
date Tue, 14 Jul 2009 00:19:55 +0900
parents c4cb171f9453
children cf19005e65d1
line wrap: on
line diff
--- a/mediatomb.php	Mon Jul 13 23:47:19 2009 +0900
+++ b/mediatomb.php	Tue Jul 14 00:19:55 2009 +0900
@@ -3,6 +3,7 @@
 
 include_once('config.php');
 include_once(INSTALL_PATH.'/DBRecord.class.php');
+include_once(INSTALL_PATH.'/reclib.php');
 
 try {
 
@@ -17,9 +18,10 @@
   mysql_query( $sqlstr );
 
   foreach( $recs as $rec ) {
+	  $title = $rec->title."(".date("Y/m/d", toTimestamp($rec->starttime)).")";
       $sqlstr = "update mt_cds_object set metadata='dc:description=".$rec->description."' where dc_title='".$rec->path."'";
       mysql_query( $sqlstr );
-      $sqlstr = "update mt_cds_object set dc_title='".$rec->title."' where dc_title='".$rec->path."'";
+      $sqlstr = "update mt_cds_object set dc_title='".$title."' where dc_title='".$rec->path."'";
       mysql_query( $sqlstr );
   }
 }