[banshee/gio-hardware] Use LibraryImportManager to import wmv and mp4



commit 86026b2154f0b589d454b155779a8e392e8b9c6e
Author: Aaron Bockover <abockover novell com>
Date:   Tue Aug 3 18:02:01 2010 -0400

    Use LibraryImportManager to import wmv and mp4
    
    These types we know we can handle regularly, so let them be imported
    as-is into the video library. This provides import support for video
    enclosuers.

 .../Banshee.AmazonMp3/UserJobDownloadManager.cs    |   13 +++++++++----
 1 files changed, 9 insertions(+), 4 deletions(-)
---
diff --git a/src/Extensions/Banshee.AmazonMp3/Banshee.AmazonMp3/UserJobDownloadManager.cs b/src/Extensions/Banshee.AmazonMp3/Banshee.AmazonMp3/UserJobDownloadManager.cs
index 82ed1a4..b1dfaf0 100644
--- a/src/Extensions/Banshee.AmazonMp3/Banshee.AmazonMp3/UserJobDownloadManager.cs
+++ b/src/Extensions/Banshee.AmazonMp3/Banshee.AmazonMp3/UserJobDownloadManager.cs
@@ -198,10 +198,15 @@ namespace Banshee.AmazonMp3
             var track = amz_downloader.Track;
 
             if (downloader.State.Success) {
-                if (amz_downloader.FileExtension == "mp3") {
-                    import_manager.Enqueue (amz_downloader.LocalPath);
-                } else {
-                    non_mp3_queue.Enqueue (amz_downloader);
+                switch (amz_downloader.FileExtension) {
+                    case "mp3":
+                    case "wmv":
+                    case "mp4":
+                        import_manager.Enqueue (amz_downloader.LocalPath);
+                        break;
+                    default:
+                        non_mp3_queue.Enqueue (amz_downloader);
+                        break;
                 }
             }
 



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