diff mediatomb.php @ 28:9238c1d9e060

modified: mediatomb.php
author yoneda <epgrec@park.mda.or.jp>
date Sun, 26 Jul 2009 18:07:39 +0900
parents cf19005e65d1
children e5f9aa34d06f
line wrap: on
line diff
--- a/mediatomb.php	Sun Jul 26 18:00:11 2009 +0900
+++ b/mediatomb.php	Sun Jul 26 18:07:39 2009 +0900
@@ -19,7 +19,7 @@
 
   foreach( $recs as $rec ) {
 	  $title = mysql_real_escape_string($rec->title)."(".date("Y/m/d", toTimestamp($rec->starttime)).")";
-      $sqlstr = "update mt_cds_object set metadata='dc:description=".mysql_real_escape_string($rec->description)."' where dc_title='".$rec->path."'";
+      $sqlstr = "update mt_cds_object set metadata='dc:description=".mysql_real_escape_string($rec->description)."&epgrec:id=".$rec->id."' where dc_title='".$rec->path."'";
       mysql_query( $sqlstr );
       $sqlstr = "update mt_cds_object set dc_title='".$title."' where dc_title='".$rec->path."'";
       mysql_query( $sqlstr );