Travis Shirk  committed 1f7f015

Handle 'Z' in frame times (indicated UTC) and more quiet error reporting when
a plugin fails to load because of an import error (e.g. not all deps installed)

  • Participants
  • Parent commits dc13c46
  • Branches stable

Comments (0)

Files changed (2)

File src/eyed3/

+                          # The following end with 'Z' signally time is UTC
+                          "%Y-%m-%dT%HZ",
+                          "%Y-%m-%dT%H:%MZ",
+                          "%Y-%m-%dT%H:%M:%SZ",
                           # The following are wrong per the specs, but ...
                           "%Y-%m-%d %H:%M:%S",

File src/eyed3/plugins/

                     and f[0] not in ('_', '.')
                     and f.endswith(".py"))
+    log.debug("Extra plugin paths: %s" % paths)
     for d in [os.path.dirname(__file__)] + (paths if paths else []):
         log.debug("Searching '%s' for plugins", d)
         if not os.path.isdir(d):
                             if name and name in PluginClass.NAMES:
                                 return PluginClass
+        except ImportError as ex:
+            log.warning("Plugin '%s' requires packages that are not "
+                        "installed: %s" % ((f, d), ex))
+            continue
         except exceptions.Exception as ex:
             log.exception("Bad plugin '%s'", (f, d))