Added --no-tags option and an except clause to tagging code. v0.5.1
Released as 0.5.1

file:82c7a2d84588b0248e13c29ceede438a23a4ca29 -> file:682f8616ba61ec6889e2012943279818ce0be5af
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,8 +1,15 @@
+mp3togo (0.5.1) unstable; urgency=low
+
+ * Added --no-tags option which disables tagging of output files.
+ * Added a test for exceptions to the tagging code.
+
+ -- Simeon Veldstra <reallifesim@gmail.com> Sun, 28 May 2006 11:04:37 -0700
+
mp3togo (0.5.0) unstable; urgency=low
* Added cluster mode feature.
- -- Simeon Veldstra <sim@puddle.ca> Fri, 26 May 2006 20:08:39 -0700
+ -- Simeon Veldstra <reallifesim@gmail.com> Fri, 26 May 2006 20:08:39 -0700
mp3togo (0.4.1) unstable; urgency=low
file:51c7f4564da784f43c5d273308ac7c542b433fb1 -> file:38f2c8b271764e4ced5309da20ae251c03d8a639
--- a/debian/mp3togo.1
+++ b/debian/mp3togo.1
@@ -134,4 +134,4 @@ License can be found in /usr/share/commo
.PP
mp3togo can be found online at http://puddle.ca/mp3togo
-.\" created by instant / docbook-to-man, Sat 20 May 2006, 02:36
+.\" created by instant / docbook-to-man, Fri 26 May 2006, 20:33
file:7cca84584f2487c126839ef910f2cfdeb2f67f33 -> file:b3739315c653d071b957248fb91325f7682b4e89
--- a/mp3togo/__init__.py
+++ b/mp3togo/__init__.py
@@ -21,5 +21,5 @@
# __all__ = ('converter', 'main', 'options', 'setup')
-version = '0.5.0'
+version = '0.5.1'
file:e17d982a2ab724aa70307dd7ea2756015247e290 -> file:a7e25b1aa36864ab3e73970d8394c55939c06344
--- a/mp3togo/conf.py
+++ b/mp3togo/conf.py
@@ -84,6 +84,8 @@ class Options(options.Options):
'''The number of directory levels to preserve in the output tree. Use 0 to put all output files directly into the target directory. Use 2 to create a directory for the Artist and then the Album (Assuming your music collection is organized in directories by artist then album).'''),
('treestructure', '', 'format', '', None,
'''A string specifying the format for the output files. The format string can contain the following escapes:<li>%a - Artist<li>%l - Album<li>%t - Title<li>%y - Year<li>%g - Genre<li>%% - Literal '%'<br>Overrides --tree-depth.'''),
+ ('notags', '', 'no-tags', False, None,
+ '''Do not try to write tags to the output files.'''),
('maxunits', 'm', 'max-size', '0', self._units,
'''The disk space available to use in bytes. Append 'M' for megabytes, 'G' for gigabytes or 'K' for kilobytes. Use 0 to use all available space on the filesystem.'''),
('maxsize', '', '', 0L, None, ''),
file:00d55ca2761f055d9853fa6655b03b4f4f0476d4 -> file:a5b00468ce6fd2e42fcb50fb1537939847974ef7
--- a/mp3togo/tags.py
+++ b/mp3togo/tags.py
@@ -150,13 +150,20 @@ class Tags(UserDict.DictMixin):
vf = ogg.vorbis.VorbisFile(filename)
out = vf.comment()
puttags(out)
- out.write_to(filename)
+ try:
+ out.write_to(filename)
+ except:
+ pass
del out
del vf
elif fmt == 'mp3':
out = ID3.ID3(filename, as_tuple=1)
puttags(out)
- out.write()
+ try:
+ out.write()
+ except:
+ # Tagging failed, but the file should be okay.
+ pass
del out
else:
self._lock.release()
file:84905a1b15c4ed5819c11f5cd254370ee8e26fa9 -> file:34961702cb869c6fb128eb7905eb8870ae4738a6
--- a/mp3togo/track.py
+++ b/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:
file:7c0888ab7440b5ffab4764d790c1eb9f19dee0d5 -> file:a1c8eb5aa84f4348ae1f06c6636146b22d59af77
--- a/setup.py
+++ b/setup.py
@@ -22,6 +22,8 @@ import sys, os
from distutils.core import setup
+import mp3togo
+
## Sort out the version number from the containing directory
#release = os.path.basename(os.getcwd()).split('-')[1]
#fp = file("mp3togo/__init__.py", 'r')
@@ -39,6 +41,9 @@ from distutils.core import setup
# patch distutils if it can't cope with the "classifiers" or
# "download_url" keywords
+
+release = mp3togo.version
+
if sys.version < '2.2.3':
from distutils.dist import DistributionMetadata
DistributionMetadata.classifiers = None