Added --no-tags option and an except clause to tagging code.
/mp3togo/track.py
blob:84905a1b15c4ed5819c11f5cd254370ee8e26fa9 -> blob:34961702cb869c6fb128eb7905eb8870ae4738a6
--- mp3togo/track.py
+++ mp3togo/track.py
@@ -227,13 +227,14 @@ class Track:
# Tag
# tag files from the cache as well, brwarning may have changed
- def tag_output():
- self.tags.write(self._outname)
- return True
- job = task.SimpleTask(self, tag_output, None,
- lambda: True, name="Tagging")
- tasks.append(job)
- del job
+ if not opts['notags']:
+ def tag_output():
+ self.tags.write(self._outname)
+ return True
+ job = task.SimpleTask(self, tag_output, None,
+ lambda: True, name="Tagging")
+ tasks.append(job)
+ del job
# Cache the output if we had to go to the trouble of producing it
if not self._hash and self._cache: