From 0dba6d73108d35a19045630d8c27a2d6cd35e14b Mon Sep 17 00:00:00 2001 From: gryf Date: Sun, 21 Jan 2018 16:55:44 +0100 Subject: [PATCH] Fix check for mp3 encoder during tagging --- flac2ogg.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/flac2ogg.py b/flac2ogg.py index 88bf80d..94609b2 100755 --- a/flac2ogg.py +++ b/flac2ogg.py @@ -170,7 +170,6 @@ class FileType(object): self.album = None self.album_artist = None - self.album = None self.title = None self.performer = None @@ -210,8 +209,7 @@ class FileType(object): else: tag = mutagen.File(self.filename) - - if self.encoder == 'mp3': + if isinstance(self.encoder, Mp3Encoder): self._mp3_tag(tag) return @@ -316,6 +314,7 @@ class Mp3Type(FileType): """Extract mp3 file to wav""" sp.check_call(["lame", "--decode", self.filename, self.wav]) + class OggType(FileType): """Ogg Vorbis filetype"""