mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-05 21:57:41 +02:00
Add rdio geo's
This commit is contained in:
@@ -56,6 +56,8 @@ ChartsPlugin::ChartsPlugin()
|
|||||||
/// If you add resource, update version aswell
|
/// If you add resource, update version aswell
|
||||||
m_chartVersion = "2.6";
|
m_chartVersion = "2.6";
|
||||||
m_supportedGetTypes << InfoChart << InfoChartCapabilities;
|
m_supportedGetTypes << InfoChart << InfoChartCapabilities;
|
||||||
|
// Charts that have geo or genre types
|
||||||
|
m_geoChartIds << "wearehunted" << "itunes" << "hotnewhiphop" << "djshop.de" << "rdio";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@@ -423,7 +425,10 @@ ChartsPlugin::chartsList()
|
|||||||
QVariantMap charts;
|
QVariantMap charts;
|
||||||
QString chartName;
|
QString chartName;
|
||||||
QStringList defaultChain;
|
QStringList defaultChain;
|
||||||
if ( source == "wearehunted" || source == "itunes" || source == "hotnewhiphop" || source == "djshop.de" )
|
|
||||||
|
qDebug() << Q_FUNC_INFO << "FETCHING " << source;
|
||||||
|
|
||||||
|
if ( m_geoChartIds.contains( source ) )
|
||||||
{
|
{
|
||||||
// Some charts can have an extra param, itunes has geo, WAH has emerging/mainstream
|
// Some charts can have an extra param, itunes has geo, WAH has emerging/mainstream
|
||||||
// Itunes has geographic-area based charts. So we build a breadcrumb of
|
// Itunes has geographic-area based charts. So we build a breadcrumb of
|
||||||
@@ -479,9 +484,7 @@ ChartsPlugin::chartsList()
|
|||||||
else
|
else
|
||||||
extra = chart.value( "extra" ).toString();
|
extra = chart.value( "extra" ).toString();
|
||||||
|
|
||||||
if ( source == "hotnewhiphop" )
|
if ( source == "hotnewhiphop" || source == "djshop.de" || source == "rdio" )
|
||||||
name = chart.value( "name" ).toString();
|
|
||||||
if ( source == "djshop.de" )
|
|
||||||
name = chart.value( "name" ).toString();
|
name = chart.value( "name" ).toString();
|
||||||
|
|
||||||
if ( name.isEmpty() ) // not a specific chart, an all chart
|
if ( name.isEmpty() ) // not a specific chart, an all chart
|
||||||
@@ -533,6 +536,10 @@ ChartsPlugin::chartsList()
|
|||||||
{
|
{
|
||||||
chartName = "DjShop.de";
|
chartName = "DjShop.de";
|
||||||
}
|
}
|
||||||
|
else if ( source == "rdio" )
|
||||||
|
{
|
||||||
|
chartName = "Rdio";
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
@@ -113,6 +113,7 @@ private:
|
|||||||
QList< InfoRequestData > m_cachedRequests;
|
QList< InfoRequestData > m_cachedRequests;
|
||||||
QHash< QString, QString > m_cachedCountries;
|
QHash< QString, QString > m_cachedCountries;
|
||||||
QPointer< QNetworkAccessManager > m_nam;
|
QPointer< QNetworkAccessManager > m_nam;
|
||||||
|
QStringList m_geoChartIds;
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user