1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-04-14 21:11:56 +02:00

* Fixed rejecting default covers for artist images, too.

This commit is contained in:
Christian Muehlhaeuser 2011-04-15 10:25:32 +02:00
parent 5e38fc5725
commit aad9dd4d75
2 changed files with 6 additions and 4 deletions

View File

@ -81,7 +81,6 @@ LastFmPlugin::LastFmPlugin( QObject* parent )
}
#endif
m_badUrls << QUrl( "http://cdn.last.fm/flatness/catalogue/noimage" );
connect( TomahawkSettings::instance(), SIGNAL( changed() ),
@ -333,8 +332,11 @@ LastFmPlugin::artistImagesReturned()
if ( redir.isEmpty() )
{
QByteArray ba = reply->readAll();
if ( m_badUrls.contains( reply->url() ) )
ba = QByteArray();
foreach ( const QUrl& url, m_badUrls )
{
if ( reply->url().toString().startsWith( url.toString() ) )
ba = QByteArray();
}
InfoCustomData returnedData;
returnedData["imgbytes"] = ba;

View File

@ -105,7 +105,7 @@ SettingsDialog::SettingsDialog( QWidget *parent )
ResolverConfigDelegate* del = new ResolverConfigDelegate( this );
connect( del, SIGNAL( openConfig( QString ) ), this, SLOT( openResolverConfig( QString ) ) );
ui->scriptList->setItemDelegate( del );
m_resolversModel = new ResolversModel( s->allScriptResolvers(), s->enabledScriptResolvers(), this );
m_resolversModel = new ResolversModel( s->allScriptResolvers(), s->enabledScriptResolvers(), this );
ui->scriptList->setModel( m_resolversModel );
connect( ui->scriptList->selectionModel(), SIGNAL( selectionChanged( QItemSelection,QItemSelection ) ), this, SLOT( scriptSelectionChanged() ) );