[banshee] WebOSDevice: Support playlists (bgo#641486)



commit 8cba8338443d27016dc6cd9a99555130a3a7f1f9
Author: Mark Busby <mobusby gmail com>
Date:   Tue Mar 22 10:43:26 2011 -0500

    WebOSDevice: Support playlists (bgo#641486)
    
    Also, remove the ringtone directory so it's not loaded and so when
    syncing the ringtones aren't removed.
    
    Signed-off-by: Gabriel Burt <gabriel burt gmail com>

 .../Banshee.Dap.MassStorage/WebOSDevice.cs         |   14 ++++++++++----
 1 files changed, 10 insertions(+), 4 deletions(-)
---
diff --git a/src/Dap/Banshee.Dap.MassStorage/Banshee.Dap.MassStorage/WebOSDevice.cs b/src/Dap/Banshee.Dap.MassStorage/Banshee.Dap.MassStorage/WebOSDevice.cs
index 5501c9c..52d697e 100644
--- a/src/Dap/Banshee.Dap.MassStorage/Banshee.Dap.MassStorage/WebOSDevice.cs
+++ b/src/Dap/Banshee.Dap.MassStorage/Banshee.Dap.MassStorage/WebOSDevice.cs
@@ -77,14 +77,16 @@ namespace Banshee.Dap.MassStorage
         // recognize them within the media player.
         private static string [] playlist_formats = new string [] {
             // "audio/x-scpls",
-            // "audio/mpegurl",
-            // "audio/x-mpegurl"
+            "audio/mpegurl",
+            "audio/x-mpegurl"
         };
 
+        private static string playlists_path = "Music/";
+
         private static string [] audio_folders = new string [] {
             "Music/",
             "Videos/",
-            "ringtones/",
+            //"ringtones/",
             "AmazonMP3/"
         };
 
@@ -103,7 +105,7 @@ namespace Banshee.Dap.MassStorage
 
         public override void SourceInitialize ()
         {
-            amazon_base_dir = System.IO.Path.Combine (Source.Volume.MountPoint, audio_folders[3]);
+            amazon_base_dir = System.IO.Path.Combine (Source.Volume.MountPoint, audio_folders[2]);
 
             amazon_source = new AmazonMp3GroupSource (Source, "AmazonMP3", amazon_base_dir);
             amazon_source.AutoHide = true;
@@ -150,6 +152,10 @@ namespace Banshee.Dap.MassStorage
             get { return playlist_formats; }
         }
 
+        protected override string DefaultPlaylistPath {
+            get { return playlists_path; }
+        }
+
         public override string [] GetIconNames ()
         {
             return icon_names;



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]