album artist

This commit is contained in:
quackerd 2024-03-12 02:53:24 +08:00
parent 0b1c8806a2
commit 23619d3651

View File

@ -135,10 +135,13 @@ class MFLACObject(MObject):
self._flac.save(self._file_io) self._flac.save(self._file_io)
def get_album_artist(self) -> list[str]: 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: 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]: def get_artist(self) -> list[str]:
return self._flac.get("ARTIST") return self._flac.get("ARTIST")