[banshee] Use LibraryImportManager to import wmv and mp4
- From: Aaron Bockover <abock src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [banshee] Use LibraryImportManager to import wmv and mp4
- Date: Tue, 3 Aug 2010 22:05:02 +0000 (UTC)
commit 775e78ceb079394715fe2ca65b0531c360dac68f
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]