Update of /cvsroot/gtkpod/gtkpod/src
In directory sc8-pr-cvs2.sourceforge.net:/tmp/cvs-serv2656/src
Modified Files:
file.c
Log Message:
* src/file.c (get_track_info_from_file): set time_modified to
modification date of file instead of current time. Thanks to
Richard Hyde.
Index: file.c
===================================================================
RCS file: /cvsroot/gtkpod/gtkpod/src/file.c,v
retrieving revision 1.180
retrieving revision 1.181
diff -u -d -r1.180 -r1.181
--- file.c 25 Jun 2006 05:56:39 -0000 1.180
+++ file.c 18 Aug 2006 01:38:11 -0000 1.181
@@ -1,4 +1,4 @@
-/* Time-stamp: <2006-06-25 00:22:56 jcs>
+/* Time-stamp: <2006-08-18 10:31:58 jcs>
|
| Copyright (C) 2002-2005 Jorg Schuler <jcsjcs at users sourceforge net>
| Part of the gtkpod project.
@@ -1129,10 +1129,10 @@
add_artwork (nti);
}
- /* Set modification date to *now* */
- nti->time_modified = itdb_time_get_mac_time ();
+ /* Set modification date to the files modified date */
+ nti->time_modified = itdb_time_host_to_mac(enti->mtime);
/* Set added date to *now* */
- nti->time_added = nti->time_modified;
+ nti->time_added = itdb_time_get_mac_time ();
/* Make sure all strings are initialized -- that way we don't
have to worry about it when we are handling the
@@ -1561,6 +1561,7 @@
(hash value may have changed!) */
gchar *name_on_ipod;
gchar *oldhash = etr->md5_hash;
+
md5_track_remove (track);
/* need to remove the old value manually! */
etr->md5_hash = NULL;
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
gtkpod-cvs2 mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gtkpod-cvs2