commit 1252bc0e18c396b2cb5e1bd5369f17403ca181aa Author: phantomjinx <p.g.richard...@phantomjinx.co.uk> Date: Mon Aug 30 10:51:25 2010 +0100
Fix for creation of blank playlist on 80GB ipod video * The ordering of itdb writes seems to be crucial for certain ipod models. The 80GB ipod video requires the albums to be written before the playlists. Otherwise, a blank playist is created, which has no name and cannot be accessed by itdb parsing applications. It is only visible on the ipod itself but can mask other playlists that have been written. src/itdb_itunesdb.c | 17 +++++++++-------- 1 files changed, 9 insertions(+), 8 deletions(-) --- diff --git a/src/itdb_itunesdb.c b/src/itdb_itunesdb.c index db59414..0ccf5c8 100644 --- a/src/itdb_itunesdb.c +++ b/src/itdb_itunesdb.c @@ -5761,6 +5761,15 @@ static gboolean itdb_write_file_internal (Itdb_iTunesDB *itdb, goto err; } + /* write albums (mhsd type 4) */ + if (!write_mhsd_albums (fexp)) { + g_set_error (&fexp->error, + ITDB_FILE_ERROR, + ITDB_FILE_ERROR_ITDB_CORRUPT, + _("Error writing list of albums (mhsd type 4)")); + goto err; + } + /* write special podcast version mhsd (mhsd type 3) */ if (!fexp->error && !write_mhsd_playlists (fexp, 3)) { g_set_error (&fexp->error, @@ -5778,14 +5787,6 @@ static gboolean itdb_write_file_internal (Itdb_iTunesDB *itdb, goto err; } - /* write albums (mhsd type 4) */ - if (!write_mhsd_albums (fexp)) { - g_set_error (&fexp->error, - ITDB_FILE_ERROR, - ITDB_FILE_ERROR_ITDB_CORRUPT, - _("Error writing list of albums (mhsd type 4)")); - goto err; - } /* write artists (mhsd type 8) */ if (!fexp->error && !write_mhsd_artists (fexp)) { g_set_error (&fexp->error, ------------------------------------------------------------------------------ This SF.net Dev2Dev email is sponsored by: Show off your parallel programming skills. Enter the Intel(R) Threading Challenge 2010. http://p.sf.net/sfu/intel-thread-sfd _______________________________________________ gtkpod-cvs2 mailing list gtkpod-cvs2@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gtkpod-cvs2