1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-08-08 23:26:40 +02:00

Include tomahawk version in the request

This commit is contained in:
Hugo Lindström
2012-10-15 14:27:37 +02:00
parent 3f4bbaa6bb
commit 5b85062f7a

View File

@@ -42,7 +42,7 @@ NewReleasesPlugin::NewReleasesPlugin()
: InfoPlugin() : InfoPlugin()
, m_nrFetchJobs ( 0 ) , m_nrFetchJobs ( 0 )
{ {
m_nrVersion = "0.1"; m_nrVersion = "0.3";
m_supportedGetTypes << InfoNewReleaseCapabilities << InfoNewRelease; m_supportedGetTypes << InfoNewReleaseCapabilities << InfoNewRelease;
} }
@@ -192,7 +192,8 @@ void NewReleasesPlugin::notInCacheSlot ( InfoStringHash criteria, InfoRequestDat
void NewReleasesPlugin::fetchNRSourcesList( bool fetchOnlySourcesList ) void NewReleasesPlugin::fetchNRSourcesList( bool fetchOnlySourcesList )
{ {
QUrl url = QUrl ( QString ( CHART_URL "newreleases" ) );
QUrl url = QUrl ( QString ( CHART_URL "newreleases?version=%1" ).arg( TomahawkUtils::appFriendlyVersion() ) );
QNetworkReply* reply = TomahawkUtils::nam()->get ( QNetworkRequest ( url ) ); QNetworkReply* reply = TomahawkUtils::nam()->get ( QNetworkRequest ( url ) );
reply->setProperty( "only_source_list", fetchOnlySourcesList ); reply->setProperty( "only_source_list", fetchOnlySourcesList );