Skip to content
Browse files

Reorganized ID3 stuff, added comments/README notes.

  • Loading branch information...
1 parent 2cf3cad commit e804d0e4c3b7c4d54a645c37bed8cdcbccbc2cd6 @xenomachina committed Jan 13, 2012
Showing with 30 additions and 0 deletions.
  1. +13 −0 README
  2. +1 −0 { → media}/id3/id3dump.py
  3. +9 −0 { → media}/id3/reencodeid3.py
  4. +7 −0 { → media}/id3/removeid3dupes.py
View
13 README
@@ -17,3 +17,16 @@ media/dvdrip/dvdrip.py
----------------------
A wrapper script for ripping DVDs. Uses HandbrakeCLI. Currently Mac
only, but probably easy to port to Linux.
+
+media/id3/id3dump.py
+--------------------
+Dumps all of the ID3 frames to stdout. For debugging ID3 issues.
+
+media/id3/reencodeid3.py
+------------------------
+Repairs ID3 tags that were incorrectly marked as latin1 when they were
+actually UTF-8.
+
+media/id3/removeid3dupes.py
+---------------------------
+Removes duplicate ID3 frames.
View
1 id3/id3dump.py → media/id3/id3dump.py
@@ -6,6 +6,7 @@
import types
from sets import Set
+
GETTER_RE = re.compile('^get([A-Z].*)$')
def reencodeValue(s):
View
9 id3/reencodeid3.py → media/id3/reencodeid3.py
@@ -4,6 +4,15 @@
import re
import sys
+"""
+Repairs ID3 tags that were incorrectly marked as latin1 when they were
+actually UTF-8.
+
+I had a bunch of MP3s that I'd ripped/encoded with Grip. I don't know if
+Grip or one of the many tools it calls out to was responsible, but the
+encoding marker was set incorrectly.
+"""
+
GETTER_RE = re.compile('^get([A-Z].*)$')
def reencodeValue(s):
View
7 id3/removeid3dupes.py → media/id3/removeid3dupes.py
@@ -5,6 +5,13 @@
import types
from sets import Set
+"""
+Removes duplicate ID3 frames.
+
+For some reason Grip (or one of the tools it calls out to) put a bunch
+of duplicate ID3 frames in a bunch of my MP3s.
+"""
+
def removeDuplicateId3Frames(fnam):
print "Reading", fnam
tag = eyeD3.Tag()

0 comments on commit e804d0e

Please sign in to comment.
Something went wrong with that request. Please try again.