mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-14 01:54:07 +02:00
generate does the real thing again
This commit is contained in:
@@ -188,10 +188,7 @@ void
|
|||||||
EchonestGenerator::generate( int number )
|
EchonestGenerator::generate( int number )
|
||||||
{
|
{
|
||||||
// convert to an echonest query, and fire it off
|
// convert to an echonest query, and fire it off
|
||||||
/* qDebug() << Q_FUNC_INFO;
|
tDebug() << "Generating playlist with" << m_controls.size();
|
||||||
qDebug() << "Generating playlist with" << m_controls.size();
|
|
||||||
foreach( const dyncontrol_ptr& ctrl, m_controls )
|
|
||||||
qDebug() << ctrl->selectedType() << ctrl->match() << ctrl->input();
|
|
||||||
|
|
||||||
setProperty( "number", number ); //HACK
|
setProperty( "number", number ); //HACK
|
||||||
|
|
||||||
@@ -202,16 +199,7 @@ EchonestGenerator::generate( int number )
|
|||||||
} catch( std::runtime_error& e ) {
|
} catch( std::runtime_error& e ) {
|
||||||
qWarning() << "Got invalid controls!" << e.what();
|
qWarning() << "Got invalid controls!" << e.what();
|
||||||
emit error( "Filters are not valid", e.what() );
|
emit error( "Filters are not valid", e.what() );
|
||||||
}*/
|
}
|
||||||
|
|
||||||
QList< query_ptr > queries;
|
|
||||||
queries << Query::get("Colour Haze", "All", QString(), uuid(), true);
|
|
||||||
queries << Query::get("Colour Haze", "Sun", QString(), uuid(), true);
|
|
||||||
queries << Query::get("Colour Haze", "Zen", QString(), uuid(), true);
|
|
||||||
queries << Query::get("Colour Haze", "Outside", QString(), uuid(), true);
|
|
||||||
queries << Query::get("Colour Haze", "Dirt", QString(), uuid(), true);
|
|
||||||
|
|
||||||
emit generated( queries );
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user