mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-01 03:40:16 +02:00
* Cleanup scanner if there were no new and no obsolete tracks found.
This commit is contained in:
@@ -192,13 +192,19 @@ MusicScanner::listerFinished()
|
|||||||
m_filesToDelete << m_filemtimes[ key ].keys().first();
|
m_filesToDelete << m_filemtimes[ key ].keys().first();
|
||||||
|
|
||||||
commitBatch( m_scannedfiles, m_filesToDelete );
|
commitBatch( m_scannedfiles, m_filesToDelete );
|
||||||
m_scannedfiles.clear();
|
|
||||||
m_filesToDelete.clear();
|
|
||||||
|
|
||||||
tDebug( LOGINFO ) << "Scanning complete, saving to database. ( scanned" << m_scanned << "skipped" << m_skipped << ")";
|
if ( m_filesToDelete.length() || m_scannedfiles.length() )
|
||||||
tDebug( LOGEXTRA ) << "Skipped the following files (no tags / no valid audio):";
|
{
|
||||||
foreach ( const QString& s, m_skippedFiles )
|
m_scannedfiles.clear();
|
||||||
tDebug( LOGEXTRA ) << s;
|
m_filesToDelete.clear();
|
||||||
|
|
||||||
|
tDebug( LOGINFO ) << "Scanning complete, saving to database. ( scanned" << m_scanned << "skipped" << m_skipped << ")";
|
||||||
|
tDebug( LOGEXTRA ) << "Skipped the following files (no tags / no valid audio):";
|
||||||
|
foreach ( const QString& s, m_skippedFiles )
|
||||||
|
tDebug( LOGEXTRA ) << s;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
cleanup();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user