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:
parent
de1fa1a6be
commit
6884022c60
@ -28,6 +28,7 @@
|
||||
const char* AmazonCoverProvider::kAccessKey = "AKIAJ4QO3GQTSM3A43BQ";
|
||||
const char* AmazonCoverProvider::kSecretAccessKey = "KBlHVSNEvJrebNB/BBmGIh4a38z4cedfFvlDJ5fE";
|
||||
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")
|
||||
|
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user