mirror of
https://github.com/fergalmoran/picard.git
synced 2026-02-20 14:44:05 +00:00
Fixed saving of Ogg and FLAC files with no tags.
This commit is contained in:
@@ -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 = {}
|
||||
|
||||
Reference in New Issue
Block a user