Fix ID3v2 metadata extraction
This commit is contained in:
parent
0fd847b842
commit
efacf0c2e5
1 changed files with 1 additions and 1 deletions
|
@ -14,7 +14,7 @@ class Song:
|
|||
|
||||
@classmethod
|
||||
def from_file(cls, path: Path) -> Self:
|
||||
metadata = mutagen.File(path)
|
||||
metadata = mutagen.File(path, easy=True)
|
||||
|
||||
if "title" not in metadata or "artist" not in metadata:
|
||||
raise RuntimeError("Song is missing title or artist name")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue