rhythmbox r5765 - in trunk: . plugins/ipod
- From: teuf svn gnome org
- To: svn-commits-list gnome org
- Subject: rhythmbox r5765 - in trunk: . plugins/ipod
- Date: Fri, 20 Jun 2008 18:11:57 +0000 (UTC)
Author: teuf
Date: Fri Jun 20 18:11:56 2008
New Revision: 5765
URL: http://svn.gnome.org/viewvc/rhythmbox?rev=5765&view=rev
Log:
Handle sort artist when reading from/writing 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 Fri Jun 20 18:11:56 2008
@@ -473,6 +473,8 @@
track->title = rhythmdb_entry_dup_string (entry, RHYTHMDB_PROP_TITLE);
track->album = rhythmdb_entry_dup_string (entry, RHYTHMDB_PROP_ALBUM);
track->artist = rhythmdb_entry_dup_string (entry, RHYTHMDB_PROP_ARTIST);
+ track->sort_artist = rhythmdb_entry_dup_string (entry,
+ RHYTHMDB_PROP_ARTIST_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);
@@ -687,6 +689,12 @@
entry_set_string_prop (RHYTHMDB (db), entry,
RHYTHMDB_PROP_ARTIST, song->artist);
+ if (song->sort_artist != NULL) {
+ entry_set_string_prop (RHYTHMDB (db), entry,
+ RHYTHMDB_PROP_ARTIST_SORTNAME,
+ song->sort_artist);
+ }
+
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]