comparison runner/main.cpp @ 47:91d20795a109

* Make --force work correctly for playlists
author Chris Cannam
date Wed, 02 Mar 2011 15:27:21 +0000
parents 4d07f61dba3f
children 6c87f6443fe6
comparison
equal deleted inserted replaced
46:4d07f61dba3f 47:91d20795a109
749 for (QStringList::const_iterator i = sources.begin(); 749 for (QStringList::const_iterator i = sources.begin();
750 i != sources.end(); ++i) { 750 i != sources.end(); ++i) {
751 if (badSources.contains(*i)) continue; 751 if (badSources.contains(*i)) continue;
752 std::cerr << "Extracting features for: \"" << i->toStdString() << "\"" << std::endl; 752 std::cerr << "Extracting features for: \"" << i->toStdString() << "\"" << std::endl;
753 try { 753 try {
754 manager.extractFeatures(*i); 754 manager.extractFeatures(*i, force);
755 } catch (const std::exception &e) { 755 } catch (const std::exception &e) {
756 cerr << "ERROR: Feature extraction failed for \"" << i->toStdString() 756 cerr << "ERROR: Feature extraction failed for \"" << i->toStdString()
757 << "\": " << e.what() << endl; 757 << "\": " << e.what() << endl;
758 if (force) { 758 if (force) {
759 // print a note only if we have more files to process 759 // print a note only if we have more files to process