From 64ac72afd6a026d7aa3ecc66dc00a3450c43dfdb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luk=C3=A1=C5=A1=20Lalinsk=C3=BD?= Date: Sun, 29 Apr 2007 16:35:34 +0200 Subject: [PATCH] Fixed saving of Ogg and FLAC files with no tags. --- picard/formats/vorbis.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/picard/formats/vorbis.py b/picard/formats/vorbis.py index fa5385193..db50bf6c4 100644 --- a/picard/formats/vorbis.py +++ b/picard/formats/vorbis.py @@ -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 = {}