Commit 3adc4fd3 authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen
Browse files

MetadataParser: Don't bother running the thumbnailer for audio files

parent 50bcf79d
......@@ -123,6 +123,10 @@ parser::Task::Status MetadataParser::run( parser::Task& task )
if ( media->save() == false )
return parser::Task::Status::Fatal;
task.file->markStepCompleted( File::ParserStep::MetadataAnalysis );
// Save ourselves from the useless processing of a thumbnail later if
// we're analyzing an audio file
if ( isAudio == true )
task.file->markStepCompleted( File::ParserStep::Thumbnailer );
if ( task.file->saveParserStep() == false )
return parser::Task::Status::Fatal;
t->commit();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment