mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-07 06:36:55 +02:00
Add version to all request urls
This commit is contained in:
@@ -208,12 +208,10 @@ NewReleasesPlugin::notInCacheSlot( InfoStringHash criteria, InfoRequestData requ
|
|||||||
void
|
void
|
||||||
NewReleasesPlugin::fetchNRSourcesList( bool fetchOnlySourcesList )
|
NewReleasesPlugin::fetchNRSourcesList( bool fetchOnlySourcesList )
|
||||||
{
|
{
|
||||||
|
QUrl url = QUrl ( QString ( CHART_URL "newreleases?version=%1" ).arg( TomahawkUtils::appFriendlyVersion() ) );
|
||||||
QUrl url = QUrl ( QString ( CHART_URL "newreleases" ) );
|
|
||||||
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 );
|
||||||
|
|
||||||
|
|
||||||
tDebug() << "fetching:" << url;
|
tDebug() << "fetching:" << url;
|
||||||
connect ( reply, SIGNAL ( finished() ), SLOT ( nrSourcesList() ) );
|
connect ( reply, SIGNAL ( finished() ), SLOT ( nrSourcesList() ) );
|
||||||
|
|
||||||
@@ -276,7 +274,7 @@ void
|
|||||||
NewReleasesPlugin::fetchNR( InfoRequestData requestData, const QString& source, const QString& nr_id )
|
NewReleasesPlugin::fetchNR( InfoRequestData requestData, const QString& source, const QString& nr_id )
|
||||||
{
|
{
|
||||||
/// Fetch the chart, we need source and id
|
/// Fetch the chart, we need source and id
|
||||||
QUrl url = QUrl ( QString ( CHART_URL "newreleases/%1/%2" ).arg ( source ).arg ( nr_id ) );
|
QUrl url = QUrl ( QString ( CHART_URL "newreleases/%1/%2?version=%3" ).arg ( source ).arg ( nr_id ).arg( TomahawkUtils::appFriendlyVersion() ) );
|
||||||
tDebug ( LOGVERBOSE ) << Q_FUNC_INFO << "fetching: " << url;
|
tDebug ( LOGVERBOSE ) << Q_FUNC_INFO << "fetching: " << url;
|
||||||
|
|
||||||
QNetworkReply* reply = TomahawkUtils::nam()->get ( QNetworkRequest ( url ) );
|
QNetworkReply* reply = TomahawkUtils::nam()->get ( QNetworkRequest ( url ) );
|
||||||
|
Reference in New Issue
Block a user