summaryrefslogtreecommitdiff
path: root/formats
diff options
context:
space:
mode:
authormikeos <mike.osipov@gmail.com>2013-09-30 04:04:18 +0400
committermikeos <mike.osipov@gmail.com>2013-09-30 04:04:18 +0400
commit5fb3e2f167ba4a742dc84ed58ddd68c8374a1195 (patch)
treefe3e5a524d1334c22ee47111076928acff5fc887 /formats
parent4f343a86a7d3294d654494578fc5e717f868de3a (diff)
formats: make tag method optional
Diffstat (limited to 'formats')
-rw-r--r--formats/__base__.py3
-rw-r--r--formats/wav.py4
2 files changed, 3 insertions, 4 deletions
diff --git a/formats/__base__.py b/formats/__base__.py
index 4bb6598..f17748a 100644
--- a/formats/__base__.py
+++ b/formats/__base__.py
@@ -23,3 +23,6 @@ class BaseHandler:
self.add("-b %d" % opt.bits_per_sample)
if opt.channels and opt.channels != info.channels:
self.add("-c %d" % opt.channels)
+
+ def is_tag_supported(self):
+ return hasattr(self, "tag")
diff --git a/formats/wav.py b/formats/wav.py
index 76c2ed3..66169fc 100644
--- a/formats/wav.py
+++ b/formats/wav.py
@@ -11,9 +11,5 @@ class WavHandler(BaseHandler):
return self.build()
- def tag(self, *args):
- self.log("SKIP ")
- return True
-
def init():
return WavHandler