From aca56668744fe9fadb8a86002e10d8cc5c2b8785 Mon Sep 17 00:00:00 2001 From: "adrian.sampson" Date: Thu, 3 Jul 2008 21:20:46 +0000 Subject: [PATCH] ID3 tag is now added automatically if it's missing entirely --HG-- extra : convert_revision : svn%3A41726ec3-264d-0410-9c23-a9f1637257cc/trunk%4042 --- beets/tag.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/beets/tag.py b/beets/tag.py index e7b0e0f69..764a5c13a 100644 --- a/beets/tag.py +++ b/beets/tag.py @@ -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)