1
0
mirror of https://github.com/clementine-player/Clementine synced 2024-12-16 19:31:02 +01:00

Add an associate tag to Amazon cover requests.

(cherry picked from commit 5a9bd3e8cf)
This commit is contained in:
John Maguire 2011-12-12 17:25:58 +01:00
parent de1fa1a6be
commit 6884022c60
2 changed files with 3 additions and 0 deletions

View File

@ -28,6 +28,7 @@
const char* AmazonCoverProvider::kAccessKey = "AKIAJ4QO3GQTSM3A43BQ";
const char* AmazonCoverProvider::kSecretAccessKey = "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";
const char* AmazonCoverProvider::kUrl = "http://ecs.amazonaws.com/onca/xml";
const char* AmazonCoverProvider::kAssociateTag = "clementine-20";
AmazonCoverProvider::AmazonCoverProvider(QObject* parent)
: CoverProvider("Amazon", parent),
@ -45,6 +46,7 @@ bool AmazonCoverProvider::StartSearch(const QString& artist, const QString& albu
// Must be sorted by parameter name
ArgList args = ArgList()
<< Arg("AWSAccessKeyId", kAccessKey)
<< Arg("AssociateTag", kAssociateTag)
<< Arg("Keywords", artist + " " + album)
<< Arg("Operation", "ItemSearch")
<< Arg("ResponseGroup", "Images")

View File

@ -34,6 +34,7 @@ public:
static const char* kAccessKey;
static const char* kSecretAccessKey;
static const char* kUrl;
static const char* kAssociateTag;
bool StartSearch(const QString& artist, const QString& album, int id);