From 58b625ef0335cb96ecba7483fc9588fac5659839 Mon Sep 17 00:00:00 2001 From: Leo Franchi Date: Fri, 28 Oct 2011 12:30:26 -0400 Subject: [PATCH] Only cache spotify charts for a week, and send defaults --- .../infosystem/infoplugins/generic/spotifyPlugin.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/libtomahawk/infosystem/infoplugins/generic/spotifyPlugin.cpp b/src/libtomahawk/infosystem/infoplugins/generic/spotifyPlugin.cpp index 1fba1d266..8965d6a94 100644 --- a/src/libtomahawk/infosystem/infoplugins/generic/spotifyPlugin.cpp +++ b/src/libtomahawk/infosystem/infoplugins/generic/spotifyPlugin.cpp @@ -140,7 +140,7 @@ SpotifyPlugin::fetchChart( Tomahawk::InfoSystem::InfoRequestData requestData ) criteria["chart_id"] = hash["chart_id"]; } - emit getCachedInfo( criteria, 0, requestData ); + emit getCachedInfo( criteria, 604800000 /* Expire chart cache in 1 week */, requestData ); } void SpotifyPlugin::fetchChartCapabilities( Tomahawk::InfoSystem::InfoRequestData requestData ) @@ -268,7 +268,7 @@ SpotifyPlugin::chartTypes() } QVariantMap defaultMap; - defaultMap[ "Spotify" ] = QStringList() << "United States" << "Top Albums"; + defaultMap[ "spotify" ] = QStringList() << "United States" << "Top Albums"; m_allChartsMap[ "defaults" ] = defaultMap; m_allChartsMap.insert( "Spotify", QVariant::fromValue( charts ) );