Browse files

Due to stupid threading nonsense with tunepimp, only do the MB ID3 ta…

…gs first pass, then any other tags the second time.

git-svn-id: file:///home/rod/meta/filtered@50 2fc86ef6-2fd0-0310-8665-e8bd34009708
  • Loading branch information...
1 parent 8934013 commit 7f8bda69c21735a1e64dc5a9cd04a03d16293381 @rodbegbie committed Nov 25, 2005
Showing with 2 additions and 8 deletions.
  1. +2 −8 MetaRipper/Util/Convert.py
View
10 MetaRipper/Util/Convert.py
@@ -86,17 +86,15 @@ def convert(flacfile, mp3file):
if frame.header.id == 'UFID':
gotMB = True
break
- # destroy old instance of tag
- tag = None
if not gotMB:
try:
print "Adding MB info to MP3 ID3 tags"
writeTags(mp3file, discMeta, trackNum)
- sleep(2.0)
+ #sleep(3.0)
+ continue
except:
print "failed doing the tagwriting thing:", sys.exc_info()[0]
-
# Reload the tags now that TunePimp's done its stuff
tag = Tag()
tag.link(mp3file)
@@ -113,14 +111,12 @@ def convert(flacfile, mp3file):
if cover and not gotCover:
tag.link(mp3file)
- sleep(1.0)
print "Adding cover to MP3 ID3 tags"
tag.addImage(3, coverfilename, u"cover")
needsUpdate = True
if not gotTPOS:
print "Updating TPOS/TRCK fields"
- sleep(1.0)
tposHeader = FrameHeader(tag.header)
tposHeader.id = "TPOS"
tpos = TextFrame(tposHeader)
@@ -133,13 +129,11 @@ def convert(flacfile, mp3file):
if discMeta.releaseDate and not tag.getDate():
print "Setting release year"
- sleep(1.0)
tag.setDate(discMeta.releaseDate)
needsUpdate = True
if hasattr(discMeta, "genre") and discMeta.genre and not tag.getGenre():
print "Setting genre"
- sleep(1.0)
tag.setGenre(discMeta.genre)
needsUpdate = True

0 comments on commit 7f8bda6

Please sign in to comment.