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

Don't use QVariantHash instead of QVariantMap for artist biographies

This commit is contained in:
Dominik Schmidt
2014-11-17 15:15:32 +01:00
parent 2cd4b0442e
commit 470cd7e0c5
3 changed files with 3 additions and 3 deletions

View File

@@ -182,7 +182,7 @@ EchonestPlugin::getArtistBiographySlot()
QVariantMap biographyMap;
Q_FOREACH( const Echonest::Biography& biography, biographies )
{
QVariantHash siteData;
QVariantMap siteData;
siteData[ "site" ] = biography.site();
siteData[ "url" ] = biography.url().toString();
siteData[ "text" ] = biography.text();

View File

@@ -547,7 +547,7 @@ Artist::infoSystemInfo( Tomahawk::InfoSystem::InfoRequestData requestData, QVari
foreach ( const QString& source, bmap.keys() )
{
if ( source == "last.fm" )
m_biography = bmap[ source ].toHash()[ "text" ].toString();
m_biography = bmap[ source ].toMap()[ "text" ].toString();
}
m_biographyLoaded = true;

View File

@@ -736,7 +736,7 @@ LastFmInfoPlugin::artistInfoReturned()
.replace( trackRegExp, "<a href=\"tomahawk://view/track?artist=\\2&album=\\3&name=\\4\">" )
.replace( "&album=_", "" );
QVariantHash siteData;
QVariantMap siteData;
siteData[ "site" ] = "last.fm";
siteData[ "text" ] = biography.replace( "\r", "\n" ).replace( "\n\n", "\n" );
siteData[ "summary" ] = lfm["artist"]["bio"]["summary"].text().trimmed().replace( "\r", "\n" ).replace( "\n\n", "\n" );