1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-08-04 13:17:34 +02:00

Remove the iTunes Store: Top Songs in part of the itunes charts

This commit is contained in:
Leo Franchi
2011-10-28 17:22:00 -04:00
parent f1200ac74d
commit ec66cf29f3

View File

@@ -286,7 +286,7 @@ ChartsPlugin::chartTypes()
const QVariantMap chart = chartObj.toMap(); const QVariantMap chart = chartObj.toMap();
const QString id = chart.value( "id" ).toString(); const QString id = chart.value( "id" ).toString();
const QString geo = chart.value( "geo" ).toString(); const QString geo = chart.value( "geo" ).toString();
QString name = chart.value( "name" ).toString(); QString name = chart.value( "genre" ).toString();
const QString type = chart.value( "type" ).toString(); const QString type = chart.value( "type" ).toString();
const bool isDefault = ( chart.contains( "default" ) && chart[ "default" ].toInt() == 1 ); const bool isDefault = ( chart.contains( "default" ) && chart[ "default" ].toInt() == 1 );
@@ -311,8 +311,8 @@ ChartsPlugin::chartTypes()
country = m_cachedCountries[ geo ]; country = m_cachedCountries[ geo ];
} }
if ( name.startsWith( "iTunes Store:" ) ) // truncate if ( name.isEmpty() ) // not a specific chart, an all chart
name = name.mid( 13 ); name = tr( "Top Overall" );
InfoStringHash c; InfoStringHash c;
c[ "id" ] = id; c[ "id" ] = id;