eyeD3 0.7.2 發布,讀寫ID3標簽的Python模塊

jopen 11年前發布 | 9K 次閱讀 eyeD3

eyed3的是一個Python程序模塊,它提供了讀取和寫入ID3標簽(v1.x和v2.3/v2.4)的功能。它可以解碼MP3頭(比特率,采樣頻率,播放時間等)。

import eyed3

audiofile = eyed3.load("song.mp3") audiofile.tag.artist = u"Nobunny" audiofile.tag.album = u"Love Visions" audiofile.tag.title = u"I Am a Girlfriend" audiofile.tag.track_num = 4

audiofile.tag.save()</pre>發布說明: 這次發布增加對Python 2.6支持 (默認是2.7),支持ID3 chapters/TOC,disc number/total commandline options, optional preservation of file modification time during saves, --no-color, more stats in the statistics plugin, and fixes for PRIV frames, tag templates, iD3 conversions, play times, etc

 本文由用戶 jopen 自行上傳分享,僅供網友學習交流。所有權歸原作者,若您的權利被侵害,請聯系管理員。
 轉載本站原創文章,請注明出處,并保留原始鏈接、圖片水印。
 本站是一個以用戶分享為主的開源技術平臺,歡迎各類分享!