mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-03-23 01:09:42 +01:00
Sort by download count for now, and only fetch a proper url
This commit is contained in:
parent
d2bd6b8744
commit
f3e45bd240
@ -136,7 +136,7 @@ AtticaManager::providerAdded( const Provider& provider )
|
||||
{
|
||||
m_resolverProvider = provider;
|
||||
|
||||
ListJob< Content >* job = m_resolverProvider.searchContents( Category::List(), QString(), Provider::Rating );
|
||||
ListJob< Content >* job = m_resolverProvider.searchContents( Category::List(), QString(), Provider::Downloads );
|
||||
connect( job, SIGNAL( finished( Attica::BaseJob* ) ), this, SLOT( resolversList( Attica::BaseJob* ) ) );
|
||||
job->start();
|
||||
}
|
||||
@ -153,7 +153,7 @@ AtticaManager::resolversList( BaseJob* j )
|
||||
// load icon cache from disk, and fetch any we are missing
|
||||
foreach ( Content resolver, m_resolvers )
|
||||
{
|
||||
if ( !m_resolversIconCache.contains( resolver.id() ) && !resolver.icons().isEmpty() )
|
||||
if ( !m_resolversIconCache.contains( resolver.id() ) && !resolver.icons().isEmpty() && !resolver.icons().first().url().isEmpty() )
|
||||
{
|
||||
QNetworkReply* fetch = TomahawkUtils::nam()->get( QNetworkRequest( resolver.icons().first().url() ) );
|
||||
fetch->setProperty( "resolverId", resolver.id() );
|
||||
|
Loading…
x
Reference in New Issue
Block a user