Added --no-tags option and an except clause to tagging code.
/mp3togo/tags.py
blob:00d55ca2761f055d9853fa6655b03b4f4f0476d4 -> blob:a5b00468ce6fd2e42fcb50fb1537939847974ef7
--- mp3togo/tags.py
+++ mp3togo/tags.py
@@ -150,13 +150,20 @@ class Tags(UserDict.DictMixin):
vf = ogg.vorbis.VorbisFile(filename)
out = vf.comment()
puttags(out)
- out.write_to(filename)
+ try:
+ out.write_to(filename)
+ except:
+ pass
del out
del vf
elif fmt == 'mp3':
out = ID3.ID3(filename, as_tuple=1)
puttags(out)
- out.write()
+ try:
+ out.write()
+ except:
+ # Tagging failed, but the file should be okay.
+ pass
del out
else:
self._lock.release()