Fix ID3v2 metadata extraction

This commit is contained in:
mrsobakin 2024-12-25 10:58:58 +03:00
parent 0fd847b842
commit efacf0c2e5
No known key found for this signature in database
GPG key ID: 325CBF665E4FFD6E

View file

@ -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")