commit bb2fa62de7c13d54ff5737f8e43707ae87e35949
Author: Christophe Fergeau <[email protected]>
Date: Wed Nov 11 16:38:47 2009 +0100
mhsd5 does not containt all smart playlists
It was assumed that the mhsd type 5 contained smart playlists
and the code was modified accordingly. However, it seems it's not
the case and that mhsd type 5 contains smart playlists referring
to your purchased items (tv shows, music, ringtones, ...). Revert
the previous changes to fix writing of podcasts/playlists/smart
playlists and for now, write empty mhsd5
src/itdb_itunesdb.c | 10 +++-------
1 files changed, 3 insertions(+), 7 deletions(-)
---
diff --git a/src/itdb_itunesdb.c b/src/itdb_itunesdb.c
index 84713f3..4f2d5fc 100644
--- a/src/itdb_itunesdb.c
+++ b/src/itdb_itunesdb.c
@@ -5273,11 +5273,7 @@ static gboolean write_mhsd_playlists (FExport *fexp,
guint32 mhsd_type)
Itdb_Playlist *pl = gl->data;
g_return_val_if_fail (pl, FALSE);
- if ((mhsd_type == 5) && !pl->is_spl) {
- continue;
- }
-
- if (((mhsd_type == 2) || (mhsd_type == 3)) && pl->is_spl) {
+ if (mhsd_type == 5) {
continue;
}
@@ -5628,12 +5624,12 @@ static gboolean itdb_write_file_internal (Itdb_iTunesDB
*itdb,
goto err;
}
- /* write smart playlists (mhsd type 5) */
+ /* write purchase playlists (mhsd type 5) */
if (!fexp->error && !write_mhsd_playlists (fexp, 5)) {
g_set_error (&fexp->error,
ITDB_FILE_ERROR,
ITDB_FILE_ERROR_ITDB_CORRUPT,
- _("Error writing smart playlists (mhsd type 5)"));
+ _("Error writing purchase playlists (mhsd type 5)"));
goto err;
}
------------------------------------------------------------------------------
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