Fixed saving of Ogg and FLAC files with no tags.

This commit is contained in:
Lukáš Lalinský
2007-04-29 16:35:34 +02:00
parent 02963f5b2a
commit 64ac72afd6

View File

@@ -54,6 +54,8 @@ class VCommentFile(File):
def _save(self):
"""Save metadata to the file."""
file = self._File(encode_filename(self.filename))
if file.tags is None:
file.add_tags()
if self.config.setting["clear_existing_tags"]:
file.tags.clear()
tags = {}