Closed Nathoufresh closed 3 years ago
Hmm, odd. Does this patch accomplish the same success for you?
diff --git a/eyed3/core.py b/eyed3/core.py
index 0ea9992..d86793d 100644
--- a/eyed3/core.py
+++ b/eyed3/core.py
@@ -422,8 +422,7 @@ def load(path, tag_version=None) -> AudioFile:
metadata is loaded. This value must be a version constant specific to the
eventual format of the metadata.
"""
- from . import mp3, id3
- from .mimetype import guessMimetype
+ from . import mimetype, mp3, id3
if not isinstance(path, pathlib.Path):
path = pathlib.Path(path)
@@ -435,7 +434,7 @@ def load(path, tag_version=None) -> AudioFile:
else:
raise IOError(f"file not found: {path}")
- mtype = guessMimetype(path)
+ mtype = mimetype.guessMimetype(path)
log.debug(f"File mime-type: {mtype}")
if mtype in mp3.MIME_TYPES:
Yes works well now!
Hello, my linux distro Manjaro updated python to 3.9 since then I have a circular import issue.
audiofile = eyed3.load(path)
causesI "fixed" it by adding
import eyed3.mimetype
beforefrom .mimetype import guessMimetype
in eyed3/core.py