diff --git a/src/infoplugins/generic/charts/ChartsPlugin.cpp b/src/infoplugins/generic/charts/ChartsPlugin.cpp index f5667c693..80983f8ac 100644 --- a/src/infoplugins/generic/charts/ChartsPlugin.cpp +++ b/src/infoplugins/generic/charts/ChartsPlugin.cpp @@ -423,7 +423,7 @@ ChartsPlugin::chartsList() QVariantMap charts; QString chartName; QStringList defaultChain; - if ( source == "wearehunted" || source == "itunes" || source == "hotnewhiphop" ) + if ( source == "wearehunted" || source == "itunes" || source == "hotnewhiphop" || source == "djshop.de" ) { // 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 @@ -481,6 +481,8 @@ ChartsPlugin::chartsList() if ( source == "hotnewhiphop" ) name = chart.value( "name" ).toString(); + if ( source == "djshop.de" ) + name = chart.value( "name" ).toString(); if ( name.isEmpty() ) // not a specific chart, an all chart name = tr( "Top Overall" ); @@ -495,6 +497,8 @@ ChartsPlugin::chartsList() /// If this item has expired, set it to 0. c[ "expires" ] = ( ok ? QString::number (expires ) : QString::number( 0 ) ); + qDebug() << Q_FUNC_INFO << "Setting type to " << type << " Extra to " << extra; + QList< Tomahawk::InfoSystem::InfoStringHash > extraTypeData = extraType[ extra ][ type ].value< QList< Tomahawk::InfoSystem::InfoStringHash > >(); extraTypeData.append( c ); extraType[ extra ][ type ] = QVariant::fromValue< QList< Tomahawk::InfoSystem::InfoStringHash > >( extraTypeData ); @@ -527,6 +531,10 @@ ChartsPlugin::chartsList() { chartName = "HotNewHiphop"; } + else if ( source == "djshop.de" ) + { + chartName = "DjShop"; + } } } else