Skip to main content

MP3 tag information reader and writer.

Project description

mp3tag

本 repo 提供一个支持读取、修改 mp3 标签信息的工具,关于 mp3 标签信息的内容,使用Python读取Mp3的标签信息 做了初步的介绍。

Tools for read and modify mp3 tag information, you can search wiki to know more about "Identity of MP3".

特性

  • 支持读取某个文件夹下 mp3 文件的 idv3 信息
  • 输出统一为 utf-8 编码

Feature

  • Read mp3 idv3 information under specific folder
  • output attribute information in utf-8

Requirement

  • chardet

Usage

from mp3tag import musictag

music_path = '/Users/shiqiang/Downloads/old_mbp_files/OldMBP-Music/'

# mpt = mp3tag()
# mpt.get_version()
musictag.analyze_folder(music_path)

Result

$ python3 examples/tag_example.py
{'title': None, 'artist': 'Pure Music', 'album': 'นลตไร๛ว๚', 'year': b'', 'comment': b'', 'genre': 0}
{'title': 'And One', 'artist': 'Linkin Park', 'album': 'Underground 1.0', 'year': b'', 'comment': b'', 'genre': 0}

Release Notes

  • 0.0.4 : little fix, reimport chardet
  • 0.0.3 : Rename module name, modify example and readme

Reference

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mp3tag-0.0.4.tar.gz (16.5 kB view hashes)

Uploaded Source

Built Distribution

mp3tag-0.0.4-py3-none-any.whl (16.6 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page