From 23619d3651c6824c9a2e1af144283ee4473c5df0 Mon Sep 17 00:00:00 2001 From: quackerd Date: Tue, 12 Mar 2024 02:53:24 +0800 Subject: [PATCH] album artist --- mobject.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/mobject.py b/mobject.py index ba1d004..7b99e10 100644 --- a/mobject.py +++ b/mobject.py @@ -135,10 +135,13 @@ class MFLACObject(MObject): self._flac.save(self._file_io) def get_album_artist(self) -> list[str]: - return self.get_artist() + return self._flac.get("ALBUMARTIST") def set_album_artist(self, val : list[str]) -> None: - return self.set_artist(val) + self._flac["ALBUMARTIST"] = val + + self._file_io.seek(0) + self._flac.save(self._file_io) def get_artist(self) -> list[str]: return self._flac.get("ARTIST")