[banshee] AmazonMp3.Store: Fix country detection for United Kingdom (bgo#640276)



commit 9280a5ba82e3c3003f58fa2d79278082d510a89f
Author: Bertrand Lorentz <bertrand lorentz gmail com>
Date:   Sat Jan 22 18:35:08 2011 +0100

    AmazonMp3.Store: Fix country detection for United Kingdom (bgo#640276)
    
    Turns out the ISO country code for the United Kingdom is GB, so handle
    it in the redirection. Keep the existing UK code, as it is used by
    current banshee versions when manually setting the country.

 .../Banshee.AmazonMp3.Store/server/redirect.c      |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/Extensions/Banshee.AmazonMp3.Store/server/redirect.c b/src/Extensions/Banshee.AmazonMp3.Store/server/redirect.c
index b196736..58c23c1 100644
--- a/src/Extensions/Banshee.AmazonMp3.Store/server/redirect.c
+++ b/src/Extensions/Banshee.AmazonMp3.Store/server/redirect.c
@@ -82,7 +82,8 @@ main (gint argc, gchar **argv)
     } else if (strcmp (country, "FR") == 0) {
         domain = "fr";
         affiliate_code = "banshee-fr-21";
-    } else if (strcmp (country, "UK") == 0) {
+    } else if (strcmp (country, "UK") == 0 ||
+        strcmp (country, "GB") == 0) {
         domain = "co.uk";
         affiliate_code = "banshee-uk-21";
     } else if (strcmp (country, "DE") == 0 ||



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