mirror of
https://github.com/clementine-player/Clementine
synced 2024-12-17 12:02:48 +01:00
Add an associate tag to Amazon cover requests.
This commit is contained in:
parent
61ab21e040
commit
5a9bd3e8cf
@ -28,6 +28,7 @@
|
|||||||
const char* AmazonCoverProvider::kAccessKey = "AKIAJ4QO3GQTSM3A43BQ";
|
const char* AmazonCoverProvider::kAccessKey = "AKIAJ4QO3GQTSM3A43BQ";
|
||||||
const char* AmazonCoverProvider::kSecretAccessKey = "KBlHVSNEvJrebNB/BBmGIh4a38z4cedfFvlDJ5fE";
|
const char* AmazonCoverProvider::kSecretAccessKey = "KBlHVSNEvJrebNB/BBmGIh4a38z4cedfFvlDJ5fE";
|
||||||
const char* AmazonCoverProvider::kUrl = "http://ecs.amazonaws.com/onca/xml";
|
const char* AmazonCoverProvider::kUrl = "http://ecs.amazonaws.com/onca/xml";
|
||||||
|
const char* AmazonCoverProvider::kAssociateTag = "clementine-20";
|
||||||
|
|
||||||
AmazonCoverProvider::AmazonCoverProvider(QObject* parent)
|
AmazonCoverProvider::AmazonCoverProvider(QObject* parent)
|
||||||
: CoverProvider("Amazon", parent),
|
: CoverProvider("Amazon", parent),
|
||||||
@ -45,6 +46,7 @@ bool AmazonCoverProvider::StartSearch(const QString& artist, const QString& albu
|
|||||||
// Must be sorted by parameter name
|
// Must be sorted by parameter name
|
||||||
ArgList args = ArgList()
|
ArgList args = ArgList()
|
||||||
<< Arg("AWSAccessKeyId", kAccessKey)
|
<< Arg("AWSAccessKeyId", kAccessKey)
|
||||||
|
<< Arg("AssociateTag", kAssociateTag)
|
||||||
<< Arg("Keywords", artist + " " + album)
|
<< Arg("Keywords", artist + " " + album)
|
||||||
<< Arg("Operation", "ItemSearch")
|
<< Arg("Operation", "ItemSearch")
|
||||||
<< Arg("ResponseGroup", "Images")
|
<< Arg("ResponseGroup", "Images")
|
||||||
|
@ -34,6 +34,7 @@ public:
|
|||||||
static const char* kAccessKey;
|
static const char* kAccessKey;
|
||||||
static const char* kSecretAccessKey;
|
static const char* kSecretAccessKey;
|
||||||
static const char* kUrl;
|
static const char* kUrl;
|
||||||
|
static const char* kAssociateTag;
|
||||||
|
|
||||||
bool StartSearch(const QString& artist, const QString& album, int id);
|
bool StartSearch(const QString& artist, const QString& album, int id);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user