1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-03-24 09:49:42 +01:00

Add hotnewhiphop charts

This commit is contained in:
Hugo Lindström 2012-11-29 19:23:51 +01:00
parent b3de53eb9d
commit 14a6218f98

@ -1,7 +1,7 @@
/* === This file is part of Tomahawk Player - <http://tomahawk-player.org> ===
*
* Copyright 2012, Casey Link <unnamedrambler@gmail.com>
* Copyright 2010-2011, Hugo Lindström <hugolm84@gmail.com>
* Copyright 2011-2012, Hugo Lindström <hugolm84@gmail.com>
* Copyright 2011, Leo Franchi <lfranchi@kde.org>
* Copyright 2010-2011, Jeff Mitchell <jeff@tomahawk-player.org>
*
@ -420,7 +420,7 @@ ChartsPlugin::chartsList()
QVariantMap charts;
QString chartName;
QStringList defaultChain;
if ( source == "wearehunted" || source == "itunes" )
if ( source == "wearehunted" || source == "itunes" || source == "hotnewhiphop" )
{
// 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
@ -476,6 +476,9 @@ ChartsPlugin::chartsList()
else
extra = chart.value( "extra" ).toString();
if ( source == "hotnewhiphop" )
name = chart.value( "name" ).toString();
if ( name.isEmpty() ) // not a specific chart, an all chart
name = tr( "Top Overall" );
@ -517,6 +520,10 @@ ChartsPlugin::chartsList()
{
chartName = "WeAreHunted";
}
else if ( source == "hotnewhiphop" )
{
chartName = "HotNewHiphop";
}
}
}
else