From ec66cf29f30251a43d904d02023fd78d96ef09ab Mon Sep 17 00:00:00 2001
From: Leo Franchi <lfranchi@kde.org>
Date: Fri, 28 Oct 2011 17:22:00 -0400
Subject: [PATCH] Remove the iTunes Store: Top Songs in part of the itunes
 charts

---
 .../infosystem/infoplugins/generic/chartsplugin.cpp         | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/libtomahawk/infosystem/infoplugins/generic/chartsplugin.cpp b/src/libtomahawk/infosystem/infoplugins/generic/chartsplugin.cpp
index 9185a1321..235e26740 100644
--- a/src/libtomahawk/infosystem/infoplugins/generic/chartsplugin.cpp
+++ b/src/libtomahawk/infosystem/infoplugins/generic/chartsplugin.cpp
@@ -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;