mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-07-31 19:30:21 +02:00
Style fixes.
This commit is contained in:
@@ -141,7 +141,7 @@ ScriptCommand_AllAlbums::parseAlbumVariantList( const QList< Tomahawk::artist_pt
|
||||
{
|
||||
QList< Tomahawk::album_ptr > results;
|
||||
|
||||
if (artists.length() != 1 && reslist.length() != artists.length())
|
||||
if ( artists.length() != 1 && reslist.length() != artists.length() )
|
||||
{
|
||||
tLog() << "artists" << artists.length();
|
||||
tLog() << "albums" << reslist.length();
|
||||
@@ -151,7 +151,7 @@ ScriptCommand_AllAlbums::parseAlbumVariantList( const QList< Tomahawk::artist_pt
|
||||
}
|
||||
|
||||
bool useArtistList = ( artists.length() > 1 );
|
||||
for( int i=0; i<reslist.length(); i++ )
|
||||
for( int i = 0; i < reslist.length(); i++ )
|
||||
{
|
||||
const QString val = reslist[ i ].toString();
|
||||
if ( val.trimmed().isEmpty() )
|
||||
|
@@ -66,14 +66,7 @@ ScriptCommand_AllTracks::exec()
|
||||
|
||||
ScriptJob* job;
|
||||
|
||||
QVariantMap arguments;
|
||||
// TODO: implement filter
|
||||
// if ( !m_filter.isEmpty() )
|
||||
// {
|
||||
// arguments[ "filter" ] = m_filter;
|
||||
// }
|
||||
|
||||
if( m_album )
|
||||
if ( m_album )
|
||||
{
|
||||
arguments[ "artist" ] = m_album->artist()->name();
|
||||
arguments[ "album" ] = m_album->name();
|
||||
@@ -95,9 +88,9 @@ void
|
||||
ScriptCommand_AllTracks::reportFailure()
|
||||
{
|
||||
if ( m_album && m_collection )
|
||||
tDebug() << Q_FUNC_INFO << "for collection" << m_collection->name() << " artist" << m_album->artist()->name() << " album" << m_album->name();
|
||||
tDebug() << Q_FUNC_INFO << "for collection" << m_collection->name() << "artist" << m_album->artist()->name() << "album" << m_album->name();
|
||||
else if ( m_collection )
|
||||
tDebug() << Q_FUNC_INFO << "for collection" << m_collection->name() << " (no more information available)";
|
||||
tDebug() << Q_FUNC_INFO << "for collection" << m_collection->name() << "(no more information available)";
|
||||
else
|
||||
tDebug() << Q_FUNC_INFO;
|
||||
|
||||
|
Reference in New Issue
Block a user