1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-03-21 00:09:47 +01: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 QString id = chart.value( "id" ).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 bool isDefault = ( chart.contains( "default" ) && chart[ "default" ].toInt() == 1 );
@ -311,8 +311,8 @@ ChartsPlugin::chartTypes()
country = m_cachedCountries[ geo ];
}
if ( name.startsWith( "iTunes Store:" ) ) // truncate
name = name.mid( 13 );
if ( name.isEmpty() ) // not a specific chart, an all chart
name = tr( "Top Overall" );
InfoStringHash c;
c[ "id" ] = id;