mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-07-31 03:10:12 +02:00
* Fixed rejecting default covers for artist images, too.
This commit is contained in:
@@ -81,7 +81,6 @@ LastFmPlugin::LastFmPlugin( QObject* parent )
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
m_badUrls << QUrl( "http://cdn.last.fm/flatness/catalogue/noimage" );
|
m_badUrls << QUrl( "http://cdn.last.fm/flatness/catalogue/noimage" );
|
||||||
|
|
||||||
connect( TomahawkSettings::instance(), SIGNAL( changed() ),
|
connect( TomahawkSettings::instance(), SIGNAL( changed() ),
|
||||||
@@ -333,8 +332,11 @@ LastFmPlugin::artistImagesReturned()
|
|||||||
if ( redir.isEmpty() )
|
if ( redir.isEmpty() )
|
||||||
{
|
{
|
||||||
QByteArray ba = reply->readAll();
|
QByteArray ba = reply->readAll();
|
||||||
if ( m_badUrls.contains( reply->url() ) )
|
foreach ( const QUrl& url, m_badUrls )
|
||||||
ba = QByteArray();
|
{
|
||||||
|
if ( reply->url().toString().startsWith( url.toString() ) )
|
||||||
|
ba = QByteArray();
|
||||||
|
}
|
||||||
|
|
||||||
InfoCustomData returnedData;
|
InfoCustomData returnedData;
|
||||||
returnedData["imgbytes"] = ba;
|
returnedData["imgbytes"] = ba;
|
||||||
|
@@ -105,7 +105,7 @@ SettingsDialog::SettingsDialog( QWidget *parent )
|
|||||||
ResolverConfigDelegate* del = new ResolverConfigDelegate( this );
|
ResolverConfigDelegate* del = new ResolverConfigDelegate( this );
|
||||||
connect( del, SIGNAL( openConfig( QString ) ), this, SLOT( openResolverConfig( QString ) ) );
|
connect( del, SIGNAL( openConfig( QString ) ), this, SLOT( openResolverConfig( QString ) ) );
|
||||||
ui->scriptList->setItemDelegate( del );
|
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 );
|
ui->scriptList->setModel( m_resolversModel );
|
||||||
|
|
||||||
connect( ui->scriptList->selectionModel(), SIGNAL( selectionChanged( QItemSelection,QItemSelection ) ), this, SLOT( scriptSelectionChanged() ) );
|
connect( ui->scriptList->selectionModel(), SIGNAL( selectionChanged( QItemSelection,QItemSelection ) ), this, SLOT( scriptSelectionChanged() ) );
|
||||||
|
Reference in New Issue
Block a user