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

@ -14,13 +14,15 @@ def test_written_gets_recognized():
tag.artist = "An artist."
tag.album = "The album."
tag.track = 1234
tag.other["url"] = ["https://teapot.informationsanarchistik.de/Wobbl/SmallTag"]
tag = SmallTag.get("formats/test.mp3", file_obj=BytesIO(tag._compose_id3v2_tag()))
tag = SmallTag.get("formats/test.mp3", file_obj=BytesIO(tag.compose_tag()))
assert tag.title == "A normal title."
assert tag.artist == "An artist."
assert tag.album == "The album."
assert tag.track == 1234
assert tag.other["url"] == ["https://teapot.informationsanarchistik.de/Wobbl/SmallTag"]
# chars = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_ "
@ -39,6 +41,8 @@ def test_full_written_gets_recognized():
tag.title = field_content
tag.artist = field_content
tag.album = field_content
tag.track = 1234
tag.other["url"] = ["https://teapot.informationsanarchistik.de/Wobbl/SmallTag"]
tag.write()
@ -47,3 +51,5 @@ def test_full_written_gets_recognized():
assert tag.title == field_content
assert tag.artist == field_content
assert tag.album == field_content
assert tag.track == 1234
assert tag.other["url"] == ["https://teapot.informationsanarchistik.de/Wobbl/SmallTag"]