我正在尝试编写一个python脚本,该脚本将使用旧版本中的标记数据更新我demo-mp3新版本上的自定义标记。
我可以通过命令行工具(eyeD3)读取和设置UserTextFrames。而且我可以使用eyed3.id3.tag模块读取和设置标准标签(例如“艺术家”和“标题”)。但是我不知道如何使用eyed3.id3.frames模块访问自定义UserTextFrames。这是相关的文档:
https://eyed3.readthedocs.io/en/latest/eyed3.id3.html#eyed3.id3.frames.UserTextFrame
[更新!]
以下是一些示例来说明答案:
tag.user_text_frames.set("one", "A value")
tag.user_text_frames.set("two", "Another value")
for utext in tag.user_text_frames:
print(f"{utext.description} = {utext.text}")
tag.user_text_frames.remove("Another value")
for utext in tag.user_text_frames:
print(f"{utext.description} = {utext.text}")
感谢软件包的创建者Travis Shirk。