rhythmbox r5558 - in trunk: . plugins/ipod
- From: teuf svn gnome org
- To: svn-commits-list gnome org
- Subject: rhythmbox r5558 - in trunk: . plugins/ipod
- Date: Sat, 2 Feb 2008 19:24:41 +0000 (GMT)
Author: teuf
Date: Sat Feb 2 19:24:40 2008
New Revision: 5558
URL: http://svn.gnome.org/viewvc/rhythmbox?rev=5558&view=rev
Log:
* plugins/ipod/rb-ipod-source.c: (add_ipod_song_to_db): set
FIRST_SEEN property when adding songs to the library
Modified:
trunk/ChangeLog
trunk/plugins/ipod/rb-ipod-source.c
Modified: trunk/plugins/ipod/rb-ipod-source.c
==============================================================================
--- trunk/plugins/ipod/rb-ipod-source.c (original)
+++ trunk/plugins/ipod/rb-ipod-source.c Sat Feb 2 19:24:40 2008
@@ -626,6 +626,17 @@
g_value_unset (&value);
}
+ /* Set last added time */
+ if (song->time_added != 0) {
+ GValue value = {0, };
+ g_value_init (&value, G_TYPE_ULONG);
+ g_value_set_ulong (&value, itdb_time_mac_to_host (song->time_added));
+ rhythmdb_entry_set (RHYTHMDB (db), entry,
+ RHYTHMDB_PROP_FIRST_SEEN,
+ &value);
+ g_value_unset (&value);
+ }
+
/* Set last played */
if (song->time_played != 0) {
GValue value = {0, };
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]