mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-06 14:16:32 +02:00
Sort by download count for now, and only fetch a proper url
This commit is contained in:
@@ -136,7 +136,7 @@ AtticaManager::providerAdded( const Provider& provider )
|
|||||||
{
|
{
|
||||||
m_resolverProvider = 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* ) ) );
|
connect( job, SIGNAL( finished( Attica::BaseJob* ) ), this, SLOT( resolversList( Attica::BaseJob* ) ) );
|
||||||
job->start();
|
job->start();
|
||||||
}
|
}
|
||||||
@@ -153,7 +153,7 @@ AtticaManager::resolversList( BaseJob* j )
|
|||||||
// load icon cache from disk, and fetch any we are missing
|
// load icon cache from disk, and fetch any we are missing
|
||||||
foreach ( Content resolver, m_resolvers )
|
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() ) );
|
QNetworkReply* fetch = TomahawkUtils::nam()->get( QNetworkRequest( resolver.icons().first().url() ) );
|
||||||
fetch->setProperty( "resolverId", resolver.id() );
|
fetch->setProperty( "resolverId", resolver.id() );
|
||||||
|
Reference in New Issue
Block a user