mirror of
https://github.com/fergalmoran/picard.git
synced 2026-01-07 00:54:14 +00:00
PICARD-2007: Disable fingerprinting for MIDI files
Audio fingerprinting can by design not work on MIDI files
This commit is contained in:
@@ -54,3 +54,6 @@ class MIDIFile(File):
|
||||
@classmethod
|
||||
def supports_tag(cls, name):
|
||||
return False
|
||||
|
||||
def can_analyze(self):
|
||||
return False
|
||||
|
||||
@@ -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."""
|
||||
|
||||
Reference in New Issue
Block a user