1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-08-06 14:16:32 +02:00

Add hotnewhiphop charts

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

View File

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