1
0
mirror of https://github.com/gryf/flac2ogg.git synced 2025-12-18 20:10:21 +01:00

Fix check for mp3 encoder during tagging

This commit is contained in:
2018-01-21 16:55:44 +01:00
parent cb4d0c5c7d
commit 0dba6d7310

View File

@@ -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"""