From 5b85062f7a9b7c28e2452c1717c31d8d779612de Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hugo=20Lindstr=C3=B6m?= Date: Mon, 15 Oct 2012 14:27:37 +0200 Subject: [PATCH] Include tomahawk version in the request --- src/infoplugins/generic/newreleases/NewReleasesPlugin.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/infoplugins/generic/newreleases/NewReleasesPlugin.cpp b/src/infoplugins/generic/newreleases/NewReleasesPlugin.cpp index 9f0bf12f5..56d9858ef 100644 --- a/src/infoplugins/generic/newreleases/NewReleasesPlugin.cpp +++ b/src/infoplugins/generic/newreleases/NewReleasesPlugin.cpp @@ -42,7 +42,7 @@ NewReleasesPlugin::NewReleasesPlugin() : InfoPlugin() , m_nrFetchJobs ( 0 ) { - m_nrVersion = "0.1"; + m_nrVersion = "0.3"; m_supportedGetTypes << InfoNewReleaseCapabilities << InfoNewRelease; } @@ -192,7 +192,8 @@ void NewReleasesPlugin::notInCacheSlot ( InfoStringHash criteria, InfoRequestDat 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 ) ); reply->setProperty( "only_source_list", fetchOnlySourcesList );