[banshee/stable-2.0] AmazonMp3.Store: Use String.Concat and const for redirect URL
- From: Gabriel Burt <gburt src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [banshee/stable-2.0] AmazonMp3.Store: Use String.Concat and const for redirect URL
- Date: Tue, 12 Apr 2011 23:56:54 +0000 (UTC)
commit 220f3c0f89cf0080f0bbfa0cd71ae7f74b60e987
Author: Gabriel Burt <gabriel burt gmail com>
Date: Tue Apr 12 18:54:04 2011 -0500
AmazonMp3.Store: Use String.Concat and const for redirect URL
.../Banshee.AmazonMp3.Store/StoreView.cs | 7 ++++++-
1 files changed, 6 insertions(+), 1 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 fa75659..21d45fd 100644
--- a/src/Extensions/Banshee.AmazonMp3.Store/Banshee.AmazonMp3.Store/StoreView.cs
+++ b/src/Extensions/Banshee.AmazonMp3.Store/Banshee.AmazonMp3.Store/StoreView.cs
@@ -42,6 +42,11 @@ namespace Banshee.AmazonMp3.Store
{
public class StoreView : WebView
{
+ // We ask that no one change this redirect URL. ALL (100%) revenue
+ // generated by this Banshee Amazon integration is sent directly to the
+ // non-profit GNOME Foundation.
+ public const string REDIRECT_URL = "http://integrated-services.banshee.fm/amz/redirect.do/";
+
private static string [] domains = new [] {
"com",
"co.uk",
@@ -189,7 +194,7 @@ namespace Banshee.AmazonMp3.Store
public string GetActionUrl (string action)
{
- return "http://integrated-services.banshee.fm/amz/redirect.do/" + Country + "/" + action;
+ return String.Concat (REDIRECT_URL, Country, "/", action);
}
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]