rhythmbox r5775 - in trunk: . plugins/ipod
- From: teuf svn gnome org
- To: svn-commits-list gnome org
- Subject: rhythmbox r5775 - in trunk: . plugins/ipod
- Date: Tue, 24 Jun 2008 21:15:05 +0000 (UTC)
Author: teuf
Date: Tue Jun 24 21:15:05 2008
New Revision: 5775
URL: http://svn.gnome.org/viewvc/rhythmbox?rev=5775&view=rev
Log:
* plugins/ipod/rb-ipod-source.c: (create_ipod_song_from_entry):
simpler way of setting year for tracks added to the ipod
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 Tue Jun 24 21:15:05 2008
@@ -465,8 +465,6 @@
create_ipod_song_from_entry (RhythmDBEntry *entry, const char *mimetype)
{
Itdb_Track *track;
- gulong julian;
- GDate *date;
track = itdb_track_new ();
@@ -483,14 +481,7 @@
track->cd_nr = rhythmdb_entry_get_ulong (entry, RHYTHMDB_PROP_DISC_NUMBER);
track->track_nr = rhythmdb_entry_get_ulong (entry, RHYTHMDB_PROP_TRACK_NUMBER);
track->bitrate = rhythmdb_entry_get_ulong (entry, RHYTHMDB_PROP_BITRATE);
- julian = rhythmdb_entry_get_ulong (entry, RHYTHMDB_PROP_DATE);
- date = g_date_new_julian (julian);
- if (date != NULL) {
- track->year = g_date_get_year (date);
- g_date_free (date);
- } else {
- track->year = 0;
- }
+ track->year = rhythmdb_entry_get_ulong (entry, RHYTHMDB_PROP_YEAR);
track->time_added = itdb_time_get_mac_time ();
track->time_played = rhythmdb_entry_get_ulong (entry, RHYTHMDB_PROP_LAST_PLAYED);
track->time_played = itdb_time_host_to_mac (track->time_played);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]