Commit f34cbe9d authored by Gabriel Burt's avatar Gabriel Burt

AmazonMp3.Store: Get the redirect URL from conf

parent 6cd07eae
......@@ -64,6 +64,8 @@ namespace Banshee.AmazonMp3.Store
Catalog.GetString ("_Keep me logged in"),
Catalog.GetString ("Keep any session cookies that Amazon MP3 may set across instances.")));
session_section.Add (logout_pref = new VoidPreference ("log-out-button"));*/
Hyena.Log.InformationFormat ("AmazonMP3 store redirect URL: {0}", RedirectUrl.Get ());
}
public void Dispose ()
......@@ -119,6 +121,11 @@ namespace Banshee.AmazonMp3.Store
"plugins.amazonmp3store", "persist-login",
true,
"Persist the Amazon MP3 store account login across sessions (via cookies)", null);
public static readonly SchemaEntry<string> RedirectUrl = new SchemaEntry<string> (
"plugins.amazonmp3store", "redirect_url",
StoreView.REDIRECT_URL,
"The URL of the redirect server to use for the AmazonMP3 store.", null);
}
}
......@@ -194,7 +194,7 @@ namespace Banshee.AmazonMp3.Store
public string GetActionUrl (string action)
{
return String.Concat (REDIRECT_URL, Country, "/", action);
return String.Concat (StoreSourcePreferences.RedirectUrl.Get (), Country, "/", action);
}
}
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment