Index: src/Dap/Banshee.Dap/Banshee.Dap/DapSync.cs
===================================================================
--- src/Dap/Banshee.Dap/Banshee.Dap/DapSync.cs	(revision 4992)
+++ src/Dap/Banshee.Dap/Banshee.Dap/DapSync.cs	(working copy)
@@ -285,7 +285,8 @@
         private void RateLimitedSync ()
         {
             syncing = true;
-            
+
+            sync.Dap.RemovePlaylists ();
             foreach (DapLibrarySync library_sync in library_syncs) {
                 library_sync.Sync ();
             }
Index: src/Dap/Banshee.Dap/Banshee.Dap/DapLibrarySync.cs
===================================================================
--- src/Dap/Banshee.Dap/Banshee.Dap/DapLibrarySync.cs	(revision 4992)
+++ src/Dap/Banshee.Dap/Banshee.Dap/DapLibrarySync.cs	(working copy)
@@ -204,9 +204,8 @@
                 }
 
                 if (library.SupportsPlaylists && sync.Dap.SupportsPlaylists) {
-                    sync.Dap.RemovePlaylists ();
-
-                    // Then create the playlists, taking snapshots of smart playlists and saving them
+                    
+                    // Now create the playlists, taking snapshots of smart playlists and saving them
                     // as normal playlists
                     IList<AbstractPlaylistSource> playlists = GetSyncPlaylists ();
                     foreach (AbstractPlaylistSource from in playlists) {
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 4992)
+++ ChangeLog	(working copy)
@@ -1,3 +1,10 @@
+2009-01-31  Andrés G. Aragoneses <aaragoneses@novell.com>
+
+	* src/Dap/Banshee.Dap/Banshee.Dap/DapService.cs:
+	* src/Dap/Banshee.Dap/Banshee.Dap/DapSync.cs: Move the removal of playlists
+	out of the library_syncs iterations in order to fix playlist syncing in iPod
+	(BGO #560970).
+
 2009-01-31  Bertrand Lorentz  <bertrand.lorentz@gmail.com>
 
 	* src/Extensions/Banshee.Bookmarks/Banshee.Bookmarks/BookmarksService.cs:
