Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Reorganized ID3 stuff, added comments/README notes.

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

0 comments on commit e804d0e

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