mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-03-24 09:49:42 +01:00
Include tomahawk version in the request
This commit is contained in:
parent
3f4bbaa6bb
commit
5b85062f7a
@ -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 );
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user