A module that extends TinyTag's capabilities by also writing tags.
smalltag | ||
tests/formats | ||
.gitignore | ||
LICENSE.txt | ||
pyproject.toml | ||
README.md | ||
requirements.txt |
SmallTag
A module that extends TinyTag's capabilities by also writing tags.
Features
Feature | Sub-Features | State |
---|---|---|
ID3-Writing | Writing Of String Frames | Partially Implemented |
Usage
Caution
Please note that this module is still in development and could corrupt the audio file.
Reading works in exactly the same way as with TinyTag.
Example:
from smalltag import SmallTag
tag = SmallTag.get("test.mp3")
print(tag.title)
# Example Output: Test
But this module also adds support for writing metadata.
Just use the write()
-function on a loaded tag to write the metadata to the file.
Example:
from smalltag import SmallTag
tag = SmallTag.get("test.mp3")
print(tag.title)
# Example Output: Test
tag.title = "Another Test"
tag.write()
When you then load the metadata again, you will see that the title has changed:
from smalltag import SmallTag
tag = SmallTag.get("test.mp3")
print(tag.title)
# Example Output: Another Test