commit 4f5cd4b37daf52a23d0078ac9842abac2846a03e
Author: Nikias Bassen <[email protected]>
Date:   Sat Oct 10 13:00:53 2009 +0200

    reorder track information to match iTunes more closely
    
    When writing metadata about the tracks to the iTunesDB, write the
    various fields in roughly the same order as iTunes.

 src/itdb_itunesdb.c |   30 +++++++++++++++---------------
 1 files changed, 15 insertions(+), 15 deletions(-)
---
diff --git a/src/itdb_itunesdb.c b/src/itdb_itunesdb.c
index 039e74b..6ddd79c 100644
--- a/src/itdb_itunesdb.c
+++ b/src/itdb_itunesdb.c
@@ -4681,10 +4681,10 @@ static gboolean write_mhsd_tracks (FExport *fexp)
            mk_mhod (fexp, &mhod);
            ++mhod_num;
        }
-       if (track->ipod_path && *track->ipod_path)
+       if (track->artist && *track->artist)
        {
-           mhod.type = MHOD_ID_PATH;
-           mhod.data.string = track->ipod_path;
+           mhod.type = MHOD_ID_ARTIST;
+           mhod.data.string = track->artist;
            mk_mhod (fexp, &mhod);
            ++mhod_num;
        }
@@ -4695,31 +4695,31 @@ static gboolean write_mhsd_tracks (FExport *fexp)
            mk_mhod (fexp, &mhod);
            ++mhod_num;
        }
-       if (track->artist && *track->artist)
+       if (track->filetype && *track->filetype)
        {
-           mhod.type = MHOD_ID_ARTIST;
-           mhod.data.string = track->artist;
+           mhod.type = MHOD_ID_FILETYPE;
+           mhod.data.string = track->filetype;
            mk_mhod (fexp, &mhod);
            ++mhod_num;
        }
-       if (track->genre && *track->genre)
+       if (track->comment && *track->comment)
        {
-           mhod.type = MHOD_ID_GENRE;
-           mhod.data.string = track->genre;
+           mhod.type = MHOD_ID_COMMENT;
+           mhod.data.string = track->comment;
            mk_mhod (fexp, &mhod);
            ++mhod_num;
        }
-       if (track->filetype && *track->filetype)
+       if (track->ipod_path && *track->ipod_path)
        {
-           mhod.type = MHOD_ID_FILETYPE;
-           mhod.data.string = track->filetype;
+           mhod.type = MHOD_ID_PATH;
+           mhod.data.string = track->ipod_path;
            mk_mhod (fexp, &mhod);
            ++mhod_num;
        }
-       if (track->comment && *track->comment)
+       if (track->genre && *track->genre)
        {
-           mhod.type = MHOD_ID_COMMENT;
-           mhod.data.string = track->comment;
+           mhod.type = MHOD_ID_GENRE;
+           mhod.data.string = track->genre;
            mk_mhod (fexp, &mhod);
            ++mhod_num;
        }

------------------------------------------------------------------------------
Return on Information:
Google Enterprise Search pays you back
Get the facts.
http://p.sf.net/sfu/google-dev2dev
_______________________________________________
gtkpod-cvs2 mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gtkpod-cvs2

Reply via email to