diff --git a/picard/formats/midi.py b/picard/formats/midi.py index bf5689dc7..13512dd98 100644 --- a/picard/formats/midi.py +++ b/picard/formats/midi.py @@ -54,3 +54,6 @@ class MIDIFile(File): @classmethod def supports_tag(cls, name): return False + + def can_analyze(self): + return False diff --git a/picard/tagger.py b/picard/tagger.py index 23352986f..a16753b22 100644 --- a/picard/tagger.py +++ b/picard/tagger.py @@ -798,9 +798,9 @@ class Tagger(QtWidgets.QApplication): return files = self.get_files_from_objects(objs) for file in files: - file.set_pending() - self._acoustid.analyze(file, partial(file._lookup_finished, - File.LOOKUP_ACOUSTID)) + if file.can_analyze(): + file.set_pending() + self._acoustid.analyze(file, partial(file._lookup_finished, File.LOOKUP_ACOUSTID)) def generate_fingerprints(self, objs): """Generate the fingerprints without matching the files."""