[banshee] Fix mimetypes - audio/x-amzxml, not audio/x-amzurl
- From: Aaron Bockover <abock src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [banshee] Fix mimetypes - audio/x-amzxml, not audio/x-amzurl
- Date: Sun, 11 Jul 2010 01:41:31 +0000 (UTC)
commit f5a198e9453250676e0c52efc2b0cf7f528da554
Author: Aaron Bockover <abockover novell com>
Date: Sat Jul 10 21:31:11 2010 -0400
Fix mimetypes - audio/x-amzxml, not audio/x-amzurl
.../Banshee.AmazonMp3.Store/StoreView.cs | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/src/Extensions/Banshee.AmazonMp3.Store/Banshee.AmazonMp3.Store/StoreView.cs b/src/Extensions/Banshee.AmazonMp3.Store/Banshee.AmazonMp3.Store/StoreView.cs
index db36076..0cb45fe 100644
--- a/src/Extensions/Banshee.AmazonMp3.Store/Banshee.AmazonMp3.Store/StoreView.cs
+++ b/src/Extensions/Banshee.AmazonMp3.Store/Banshee.AmazonMp3.Store/StoreView.cs
@@ -78,8 +78,9 @@ namespace Banshee.AmazonMp3.Store
protected override string OnDownloadRequested (string mimetype, string uri, string suggestedFilename)
{
+ Console.WriteLine ("WTF: {0}", mimetype);
switch (mimetype) {
- case "audio/x-amzurl":
+ case "audio/x-amzxml":
var dest_uri_base = "file://" + Paths.Combine (Paths.TempDir, suggestedFilename);
var dest_uri = new SafeUri (dest_uri_base);
for (int i = 1; File.Exists (dest_uri);
@@ -102,7 +103,7 @@ namespace Banshee.AmazonMp3.Store
}
switch (mimetype) {
- case "audio/x-amzurl":
+ case "audio/x-amzxml":
Log.Debug ("OssiferWebView: downloaded purchase list", destinationUri);
Banshee.ServiceStack.ServiceManager.Get<AmazonMp3DownloaderService> ()
.DownloadAmz (new SafeUri (destinationUri).LocalPath);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]