Created
November 24, 2013 15:05
-
-
Save s-wool/7628218 to your computer and use it in GitHub Desktop.
set id3 tag to mp3 file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding:utf-8 -*- | |
import eyed3 | |
audio_file = eyed3.load("radiko_file.mp3") | |
audio_file.tag.artist = (u"Artist Name") | |
audio_file.tag.album = (u"Album Name") | |
audio_file.tag.title = (u"Title") | |
audio_file.tag.images.set(eyed3.id3.frames.ImageFrame.FRONT_COVER, "cover.jpg", "image/jpeg") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment