Implemented writing of link frames.

This commit is contained in:
The Wobbler 2025-03-18 19:28:24 +01:00
parent d48394a522
commit 2db7097fdf
4 changed files with 50 additions and 13 deletions

View file

@ -75,7 +75,22 @@ class SmallTag(TinyTag):
# return _Aiff
# return None
def write(self, file_obj: BinaryIO = None):
def write(self, advanced: dict[str, str | float | list[str]] | None=None, file_obj: BinaryIO = None):
"""
Write to the file given at creation of the tag or to the file object given to this function.
:param advanced: Dict containing fields to write.
:param file_obj: File object to write to. (Has to be in "rb+" mode.)
"""
raise NotImplementedError
def compose_tag(self, advanced: dict[str, str | float | list[str]] | None=None) -> bytes:
"""
Only compose a tag without writing.
:param advanced: Dict containing fields to write.
:return: Composed tag as bytes.
"""
raise NotImplementedError
def _set_filehandler_for_writing(self, file_obj: BinaryIO) -> bool: