rhythmbox r6288 - in trunk: . plugins/ipod



Author: teuf
Date: Sun Apr 12 07:56:47 2009
New Revision: 6288
URL: http://svn.gnome.org/viewvc/rhythmbox?rev=6288&view=rev

Log:
2009-04-12  Christophe Fergeau  <cfergeau mandriva com>

 	patch by: Sebastian Dransfeld <sebastid tango flipp net>

	* plugins/ipod/rb-ipod-source.c: write album sort information if
	it's available, fixes the other part of bug #577753.

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	Sun Apr 12 07:56:47 2009
@@ -463,6 +463,8 @@
 	track->artist = rhythmdb_entry_dup_string (entry, RHYTHMDB_PROP_ARTIST);
 	track->sort_artist = rhythmdb_entry_dup_string (entry,
 	                                                RHYTHMDB_PROP_ARTIST_SORTNAME);
+	track->sort_album = rhythmdb_entry_dup_string (entry,
+	                                                RHYTHMDB_PROP_ALBUM_SORTNAME);
 	track->genre = rhythmdb_entry_dup_string (entry, RHYTHMDB_PROP_GENRE);
 	track->filetype = g_strdup (mimetype);
 	track->size = rhythmdb_entry_get_uint64 (entry, RHYTHMDB_PROP_FILE_SIZE);
@@ -673,6 +675,12 @@
                                        song->sort_artist);
         }
 
+        if (song->sort_album != NULL) {
+                entry_set_string_prop (RHYTHMDB (db), entry,
+                                       RHYTHMDB_PROP_ALBUM_SORTNAME,
+                                       song->sort_album);
+        }
+
 	entry_set_string_prop (RHYTHMDB (db), entry,
 			       RHYTHMDB_PROP_ALBUM, song->album);
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]