OSDN Git Service

added: filename customize function
[epgrec/epgrec.git] / mediatomb.php
index 2658ead..0ed85d0 100755 (executable)
@@ -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 @@ try {
   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 );
   }
 }