mirror of
https://github.com/beetbox/beets.git
synced 2026-02-27 17:53:12 +01:00
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:
parent
e69152e958
commit
aca5666874
1 changed files with 2 additions and 0 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue