Increase GS album search limit from 5 to 10. Also, use a constant instead.
This commit is contained in:
parent
aa347d0a57
commit
d8e2fa5b1c
|
@ -75,9 +75,11 @@ const char* GroovesharkService::kUrl = "http://api.grooveshark.com/ws/3.0/";
|
|||
const char* GroovesharkService::kUrlCover = "http://beta.grooveshark.com/static/amazonart/l";
|
||||
const char* GroovesharkService::kHomepage = "http://grooveshark.com/";
|
||||
|
||||
const int GroovesharkService::kSearchDelayMsec = 400;
|
||||
const int GroovesharkService::kSongSearchLimit = 100;
|
||||
const int GroovesharkService::kSongSimpleSearchLimit = 10;
|
||||
const int GroovesharkService::kAlbumSearchLimit = 10;
|
||||
|
||||
const int GroovesharkService::kSearchDelayMsec = 400;
|
||||
|
||||
typedef QPair<QString, QVariant> Param;
|
||||
|
||||
|
@ -216,7 +218,7 @@ int GroovesharkService::SearchAlbums(const QString& query) {
|
|||
QList<Param> parameters;
|
||||
parameters << Param("query", query)
|
||||
<< Param("country", "")
|
||||
<< Param("limit", QString::number(5));
|
||||
<< Param("limit", QString::number(kAlbumSearchLimit));
|
||||
|
||||
QNetworkReply* reply = CreateRequest("getAlbumSearchResults", parameters);
|
||||
|
||||
|
|
|
@ -311,6 +311,7 @@ class GroovesharkService : public InternetService {
|
|||
|
||||
static const int kSongSearchLimit;
|
||||
static const int kSongSimpleSearchLimit;
|
||||
static const int kAlbumSearchLimit;
|
||||
static const int kSearchDelayMsec;
|
||||
|
||||
static const char* kApiKey;
|
||||
|
|
Loading…
Reference in New Issue