Commits

Travis Shirk committed 8b4a671

No unsupported type message or mime-type filtering in LoaderPlugin

Comments (0)

Files changed (1)

src/eyed3/plugins/__init__.py

 
 class LoaderPlugin(Plugin):
     '''A base class that provides auto loading of audio files'''
+
     _num_loaded = 0
 
     def handleFile(self, f, *args, **kwargs):
         '''
         self.audio_file = None
 
-        mtype = utils.guessMimetype(f)
-        if mtype is None or not (mtype.startswith("audio/") or
-                                 mtype.startswith("application/")):
-            return
-
-        self._num_loaded += 1
         try:
             self.audio_file = core.load(f, *args, **kwargs)
+            self._num_loaded += 1
         except NotImplementedError as ex:
             # Frame decryption, for instance...
             printError(ex)
-        else:
-            if not self.audio_file:
-                printError("Unsupported file type: %s" % f)
 
     def handleDone(self):
         if self._num_loaded == 0: