ID3 tag is now added automatically if it's missing entirely

--HG--
extra : convert_revision : svn%3A41726ec3-264d-0410-9c23-a9f1637257cc/trunk%4042
This commit is contained in:
adrian.sampson 2008-07-03 21:20:46 +00:00
parent e69152e958
commit aca5666874

View file

@ -294,6 +294,8 @@ class MediaFile(object):
if ext == '.mp3':
self.type = 'mp3'
self.tags = mp3.Open(path)
if not self.tags.tags:
self.tags.add_tags()
elif ext == '.m4a' or ext == '.mp4' or ext == '.m4b' or ext == '.m4p':
self.type = 'mp4'
self.tags = mp4.Open(path)