Skip to content

Instantly share code, notes, and snippets.

@s-wool
Created November 24, 2013 15:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save s-wool/7628218 to your computer and use it in GitHub Desktop.
Save s-wool/7628218 to your computer and use it in GitHub Desktop.
set id3 tag to mp3 file.
# -*- 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