mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-03-20 15:59:42 +01:00
* Fixed resolving regression, which caused omitting some results.
This commit is contained in:
parent
c3e8420b57
commit
54c203982f
@ -76,9 +76,9 @@ DatabaseCommand_Resolve::resolve( DatabaseImpl* lib )
|
||||
typedef QPair<int, float> scorepair_t;
|
||||
|
||||
// STEP 1
|
||||
QList< QPair<int, float> > artists = lib->searchTable( "artist", m_query->artist(), 10 );
|
||||
QList< QPair<int, float> > tracks = lib->searchTable( "track", m_query->track(), 10 );
|
||||
QList< QPair<int, float> > albums = lib->searchTable( "album", m_query->album(), 10 );
|
||||
QList< QPair<int, float> > artists = lib->searchTable( "artist", m_query->artist() );
|
||||
QList< QPair<int, float> > tracks = lib->searchTable( "track", m_query->track() );
|
||||
QList< QPair<int, float> > albums = lib->searchTable( "album", m_query->album() );
|
||||
|
||||
if ( artists.length() == 0 || tracks.length() == 0 )
|
||||
{
|
||||
|
@ -378,7 +378,7 @@ Servent::readyRead()
|
||||
}
|
||||
|
||||
// they connected to us and want something we are offering
|
||||
if( conntype == "accept-offer" || "push-offer" )
|
||||
if ( conntype == "accept-offer" || conntype == "push-offer" )
|
||||
{
|
||||
sock->_msg.clear();
|
||||
tDebug( LOGVERBOSE ) << Q_FUNC_INFO << key << nodeid << "socket peer address = " << sock->peerAddress() << "socket peer name = " << sock->peerName();
|
||||
|
@ -53,6 +53,7 @@ public:
|
||||
Q_INVOKABLE void addCustomUrlHandler( const QString& protocol, const QString& callbackFuncName );
|
||||
|
||||
QSharedPointer<QIODevice> customIODeviceFactory( const Tomahawk::result_ptr& result );
|
||||
|
||||
public slots:
|
||||
QByteArray readRaw( const QString& fileName );
|
||||
QString readBase64( const QString& fileName );
|
||||
@ -66,7 +67,6 @@ public slots:
|
||||
|
||||
void addTrackResults( const QVariantMap& results );
|
||||
|
||||
|
||||
private:
|
||||
QString m_scriptPath, m_urlCallback;
|
||||
QVariantMap m_resolverConfig;
|
||||
|
@ -226,7 +226,6 @@ TomahawkApp::init()
|
||||
#ifndef ENABLE_HEADLESS
|
||||
EchonestGenerator::setupCatalogs();
|
||||
|
||||
|
||||
if ( !m_headless )
|
||||
{
|
||||
tDebug() << "Init MainWindow.";
|
||||
|
Loading…
x
Reference in New Issue
Block a user