Fix flac tag bug and debian packaging v0.5.8

file:f39492e2c6ddd8a4254c9f0a92e2cf6a5039db4a -> file:d6b0b2b33c7bf7475a7f0ec5dc153d576e17b495
--- a/MANIFEST
+++ b/MANIFEST
@@ -4,7 +4,14 @@ copyright
setup.py
bin/mp3togo
mp3togo/__init__.py
-mp3togo/converter.py
+mp3togo/cache.py
+mp3togo/cluster.py
+mp3togo/conf.py
+mp3togo/filelist.py
+mp3togo/helpers.py
mp3togo/main.py
mp3togo/options.py
-mp3togo/setup.py
+mp3togo/pool.py
+mp3togo/tags.py
+mp3togo/task.py
+mp3togo/track.py
file:2ca72efcfa16067b1b702492ea07dabc47c0ff6f(new)
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,115 @@
+mp3togo (0.5.8) unstable; urgency=low
+
+ * Fixed failure when converting flac with no GENRE tag
+ * Bug reported by Norman Baier
+ * Incorporated new debian directory - no longer native package.
+
+ -- Simeon Veldstra <reallifesim@gmail.com> Sun, 5 Nov 2006 16:31:41 -0800
+
+mp3togo (0.5.7) unstable; urgency=low
+
+ * New packaging for Debian
+
+ -- Simeon Veldstra <reallifesim@gmail.com> Sat, 14 Oct 2006 14:44:47 -0700
+
+mp3togo (0.5.6) unstable; urgency=low
+
+ * Fixed divide by zero error and missing symbol error.
+ * Fixed missing genre tag in ogg file error.
+ * Thanks to Mark Hewitt for the report and fixes.
+
+ -- Simeon Veldstra <reallifesim@gmail.com> Wed, 28 Jun 2006 23:07:04 -0700
+
+mp3togo (0.5.5) unstable; urgency=low
+
+ * Added support for python-eyeD3 for more robust handling of unicode tags.
+ * python-ID3 is still supported and will be used if eyeD3 is not available.
+
+ -- Simeon Veldstra <reallifesim@gmail.com> Mon, 26 Jun 2006 19:17:31 -0700
+
+mp3togo (0.5.4) unstable; urgency=low
+
+ * Changed the ogg decoder to oggdec from ogg123 to fix bug on Debian Stable (Sarge).
+
+ -- Simeon Veldstra <reallifesim@gmail.com> Mon, 12 Jun 2006 19:46:05 -0700
+
+mp3togo (0.5.3) unstable; urgency=low
+
+ * Added Justus Pendleton's patch to fix config file bug.
+ * Fixed cluster mode - start slave as test-mp3togo bug.
+ * Made minor changes to prepare for GUI.
+
+ -- Simeon Veldstra <reallifesim@gmail.com> Tue, 6 Jun 2006 19:12:58 -0700
+
+mp3togo (0.5.2) unstable; urgency=low
+
+ * Added Justus Pendleton's .m4a patch
+
+ -- Simeon Veldstra <reallifesim@gmail.com> Wed, 31 May 2006 18:00:03 -0700
+
+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 <reallifesim@gmail.com> Fri, 26 May 2006 20:08:39 -0700
+
+mp3togo (0.4.1) unstable; urgency=low
+
+ * Merged Justus Pendleton's --format patch. See --help.
+ * Added test for failed write to stdout in mainloop.
+ * Various small bugfixes.
+ * Added a version field to the cache pickle.
+ * Added a human readable info file to cache.
+ * Added md5sum prefix to file names in cache.
+
+ -- Simeon Veldstra <reallifesim@gmail.com> Sat, 20 May 2006 02:29:59 -0700
+
+mp3togo (0.4.0) unstable; urgency=low
+
+ * Add caching support for processed files.
+ * Add support for Amarok playlist grabbing - Justus Pendleton
+ * Support specifing playlists as free arguments - idea: Christopher Arndt
+
+ -- Simeon Veldstra <reallifesim@gmail.com> Thu, 18 May 2006 00:30:09 -0700
+
+mp3togo (0.3.2) unstable; urgency=low
+
+ * Really be graceful in the absence of third party modules.
+ Thanks fab for the patch.
+
+ -- Simeon Veldstra <reallifesim@gmail.com> Wed, 17 May 2006 12:32:00 -0700
+
+mp3togo (0.3.1) unstable; urgency=low
+
+ * Thanks: Christopher Arndt for setup.py fix and suggestions.
+ * Incorrect parameter in setup.py
+ * Don't overwrite unless --force is used.
+ * Don't mangle file names arbitrarily.
+ * Separate the test suite.
+ * Be graceful in the absence of third party modules.
+
+ -- Simeon Veldstra <reallifesim@gmail.com> Mon, 15 May 2006 18:56:48 -0700
+
+mp3togo (0.3.0) unstable; urgency=low
+
+ * Rewrote program to use os.exec instead of os.system.
+ * New progress output format, pause and stop controls.
+ * Cleaned up, modularized, code.
+ * Built unit test suite.
+ * Added thread support.
+
+ -- Simeon Veldstra <reallifesim@gmail.com> Sun, 14 May 2006 14:27:56 -0700
+
+mp3togo (0.2.1) unstable; urgency=low
+
+ * Initial Release.
+ * This package is maintained by its author.
+
+ -- Simeon Veldstra <reallifesim@gmail.com> Wed, 26 Apr 2006 19:44:29 -0700
file:b8626c4cff2849624fb67f87cd0ad72b163671ad(new)
--- /dev/null
+++ b/debian/compat
@@ -0,0 +1 @@
+4
file:7ffd3478a26391dbcab528c048f9b0655344a9df(new)
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,25 @@
+Source: mp3togo
+Section: sound
+Priority: optional
+Maintainer: Simeon Veldstra <reallifesim@gmail.com>
+Build-Depends: cdbs (>= 0.4.43), debhelper (>= 5.0.37.2), python, python-support (>=0.5.2)
+#Build-Depends-Indep: python, python-support (>=0.5.3), docbook-to-man
+Build-Depends-Indep: docbook-to-man
+Standards-Version: 3.7.2
+
+Package: mp3togo
+Architecture: all
+#XS-Python-Version: current
+#XB-Python-Version: ${python:Versions}
+Depends: ${python:Depends}, python-pyvorbis, python-eyeD3, mpg321, vorbis-tools
+#Provides: ${python:Provides}
+Recommends: flac, normalize-audio
+Suggests: lame, python-xmms, faad
+Description: A tool for loading music on to portable mp3 players
+ A tool for creating sets of mp3 (or ogg vorbis) files
+ from an archive of music in various formats and bitrates.
+ The files are decoded from their original format and
+ reencoded to consistent format low bitrate files for
+ portability and space efficiency.
+ mp3togo monitors free space on the device as it works
+ and attempts to guess missing tags.
file:a2eecc638ee26c3d6af04059679eff42d2163df2(new)
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,26 @@
+This is mp3togo, written and maintained by Simeon Veldstra <reallifesim@gmail.com>
+on Wed, 26 Apr 2006 19:44:29 -0700.
+
+The original source can always be found at:
+ ftp://ftp.debian.org/dists/unstable/main/source/
+
+Copyright (C) 2004 - 2006 Simeon Veldstra
+
+License:
+
+ This program is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation; either version 2 of the License, or
+ (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this package; if not, write to the Free Software
+ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
+
+On Debian systems, the complete text of the GNU General
+Public License can be found in `/usr/share/common-licenses/GPL'.
file:8b137891791fe96927ad78e64b0aad7bded08bdc(new)
--- /dev/null
+++ b/debian/docs
@@ -0,0 +1 @@
+
file:7d59281fcbccb4c5833ce21b27b7951e41572f91(new)
--- /dev/null
+++ b/debian/mp3togo.1
@@ -0,0 +1,137 @@
+.TH "MP3TOGO" "1"
+.SH "NAME"
+mp3togo \(em program to load music on a mp3 player
+.SH "SYNOPSIS"
+.PP
+\fBmp3togo\fR [\fBoptions\fP] [\fB\fIfile(s)\fR\fP]
+.SH "DESCRIPTION"
+.PP
+This manual page documents briefly the
+\fBmp3togo\fR commands.
+.PP
+\fBmp3togo\fR is a program that creates
+files for a portable mp3 player or a mp3 CD from higher quality
+files in various formats in a permanent archive.
+.SH "OPTIONS"
+.PP
+This program follow the usual GNU command line syntax,
+with long options starting with two dashes (`\-'). A summary of
+options is included below.
+.IP " \fB-c\fP \fB\-\-config\fP " 10
+The location of the config file. (If it exists.)
+
+.IP " \fB-s\fP \fB\-\-save-config\fP " 10
+Write out a new config file with the options given and
+exit. To save the configuration to a different file, set
+\-\-config to the desired filename. The file, if it exists, will
+be overwritten.
+
+.IP " \fB\-\-no-config-file\fP " 10
+Disable reading from and writing to the config file.
+
+.IP " \fB-v\fP \fB\-\-verbose\fP " 10
+Set the verbosity level. A value of 0 will produce no
+output (except option parsing errors).
+
+.IP " \fB-h\fP \fB\-\-help\fP " 10
+Print this message.
+
+.IP " \fB-t\fP \fB\-\-file-tag\fP " 10
+A string appended to the name of the file to indicate it
+has been recoded.
+
+.IP " \fB-w\fP \fB\-\-work-dir\fP " 10
+The path to store temporary files. This could need several
+hundred megabytes free.
+
+.IP " \fB-d\fP \fB\-\-tree-depth\fP " 10
+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).
+
+.IP " \fB-m\fP \fB\-\-max-size\fP " 10
+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.
+
+.IP " \fB-F\fP \fB\-\-force\fP " 10
+Overwrite files if they already exist.
+
+.IP " \fB-C\fP \fB\-\-encoder\fP " 10
+The encoder to use to create the output files. Options are
+wave, lame or oggenc.
+
+.IP " \fB-E\fP \fB\-\-encoder-options\fP " 10
+Compression options for the encoder.
+
+.IP " \fB-z\fP \fB\-\-compression-factor\fP " 10
+If you change the lame options, you must change this
+factor to match the compression rate of the new options. This
+is used to estimate completed file size.
+
+.IP " \fB-h\fP \fB\-\-help\fP " 10
+Print this message.
+
+.IP " \fB-p\fP \fB\-\-playlist\fP " 10
+The playlist to convert. Playlists can be simple lists of
+file paths, one per line, or .m3u files or the native XMMS
+playlist file format.
+
+.IP " \fB-x\fP \fB\-\-import-xmms\fP " 10
+Get playlist from running instance of XMMS. (You must have
+xmms-shell installed)
+
+.IP " \fB-o\fP \fB\-\-output-dir\fP " 10
+Where to write the output files.
+
+.IP " \fB\-\-index\fP " 10
+Create an index file when in wav output mode.
+
+.IP " \fB\-\-no-normalize\fP " 10
+Don't normalize the wav file before encoding.
+
+.SH "FILES"
+.PP
+mp3togo will read ~./mp3togo for configuration values if it
+exists. This can be overridden with the \-\-config command line
+option.
+.SH "SEE ALSO"
+.PP
+lame (1), oggenc (1).
+.SH "EXAMPLES"
+.PP
+Load the files in playlist.m3u to the player mounted
+on /mnt/usb:
+\fBmp3togo \-p playlist.m3u \-o /mnt/usb\fR
+.PP
+Load a single file to the player:
+\fBmp3togo \-o /mnt/usb /home/media/Music/Nina_Simone/The_Blues/Turn_Me_On.ogg\fR
+.PP
+Load the playlist from the running XMMS to /mnt/usb in
+ogg vorbis format: (requires xmms-shell)
+\fBmp3togo \-C oggenc \-x \-o /mnt/usb\fR
+.PP
+Create wav files in ~/audio-cd to burn a CD from playlist.m3u:
+\fBmp3togo \-C wave \-p playlist.m3u \-m 700M \-o ~/audio-cd\fR
+.PP
+Create mp3 files on a mounted ISO CD image at /mnt/loop to
+burn a mp3 CD:
+\fBmp3togo \-p playlist.m3u \-o /mnt/loop\fR
+.SH "AUTHOR"
+.PP
+This manual page was written by Simeon Veldstra reallifesim@gmail.com for
+the \fBDebian\fP system (but may be used by others). Permission is
+granted to copy, distribute and/or modify this document under
+the terms of the GNU General Public License, Version 2 any
+later version published by the Free Software Foundation.
+
+.PP
+On Debian systems, the complete text of the GNU General Public
+License can be found in /usr/share/common-licenses/GPL.
+
+.PP
+mp3togo can be found online at http://puddle.ca/mp3togo
+
+.\" created by instant / docbook-to-man, Sun 05 Nov 2006, 16:36
file:d99d6eb98567d7a07e5236eb646244f1a42d7fa3(new)
--- /dev/null
+++ b/debian/mp3togo.1.sgml
@@ -0,0 +1,375 @@
+<!doctype refentry PUBLIC "-//OASIS//DTD DocBook V4.1//EN" [
+
+<!-- Process this file with docbook-to-man to generate an nroff manual
+ page: `docbook-to-man manpage.sgml > manpage.1'. You may view
+ the manual page with: `docbook-to-man manpage.sgml | nroff -man |
+ less'. A typical entry in a Makefile or Makefile.am is:
+
+manpage.1: manpage.sgml
+ docbook-to-man $< > $@
+
+
+ The docbook-to-man binary is found in the docbook-to-man package.
+ Please remember that if you create the nroff version in one of the
+ debian/rules file targets (such as build), you will need to include
+ docbook-to-man in your Build-Depends control field.
+
+ -->
+
+ <!-- Fill in your name for FIRSTNAME and SURNAME. -->
+ <!ENTITY dhfirstname "<firstname>Simeon</firstname>">
+ <!ENTITY dhsurname "<surname>Veldstra</surname>">
+ <!-- Please adjust the date whenever revising the manpage. -->
+ <!ENTITY dhdate "<date>April 26, 2006</date>">
+ <!-- SECTION should be 1-8, maybe w/ subsection other parameters are
+ allowed: see man(7), man(1). -->
+ <!ENTITY dhsection "<manvolnum>1</manvolnum>">
+ <!ENTITY dhemail "<email>reallifesim@gmail.com</email>">
+ <!ENTITY dhusername "Simeon Veldstra">
+ <!ENTITY dhucpackage "<refentrytitle>MP3TOGO</refentrytitle>">
+ <!ENTITY dhpackage "mp3togo">
+
+ <!ENTITY debian "<productname>Debian</productname>">
+ <!ENTITY gnu "<acronym>GNU</acronym>">
+ <!ENTITY gpl "&gnu; <acronym>GPL</acronym>">
+]>
+
+<refentry>
+ <refentryinfo>
+ <address>
+ &dhemail;
+ </address>
+ <author>
+ &dhfirstname;
+ &dhsurname;
+ </author>
+ <copyright>
+ <year>2003</year>
+ <holder>&dhusername;</holder>
+ </copyright>
+ &dhdate;
+ </refentryinfo>
+ <refmeta>
+ &dhucpackage;
+
+ &dhsection;
+ </refmeta>
+ <refnamediv>
+ <refname>&dhpackage;</refname>
+
+ <refpurpose>program to load music on a mp3 player</refpurpose>
+ </refnamediv>
+ <refsynopsisdiv>
+ <cmdsynopsis>
+ <command>&dhpackage;</command>
+
+ <arg><option>options</option></arg>
+
+ <arg><option><replaceable>file(s)</replaceable></option></arg>
+ </cmdsynopsis>
+ </refsynopsisdiv>
+
+ <refsect1>
+ <title>DESCRIPTION</title>
+
+ <para>This manual page documents briefly the
+ <command>&dhpackage;</command> commands.</para>
+
+ <para><command>&dhpackage;</command> is a program that creates
+ files for a portable mp3 player or a mp3 CD from higher quality
+ files in various formats in a permanent archive.</para>
+ </refsect1>
+
+ <refsect1>
+ <title>OPTIONS</title>
+
+ <para>This program follow the usual &gnu; command line syntax,
+ with long options starting with two dashes (`-'). A summary of
+ options is included below.</para>
+
+ <!-- See mp3togo.setup.Options().manpage() for a cheat. -->
+ <variablelist>
+ <varlistentry>
+ <term>
+ <option>-c</option>
+ <option>--config</option>
+ </term>
+ <listitem>
+ <para> The location of the config file. (If it exists.)
+ </para>
+ </listitem>
+ </varlistentry>
+ <varlistentry>
+ <term>
+ <option>-s</option>
+ <option>--save-config</option>
+ </term>
+ <listitem>
+ <para> Write out a new config file with the options given and
+ exit. To save the configuration to a different file, set
+ --config to the desired filename. The file, if it exists, will
+ be overwritten.
+ </para>
+ </listitem>
+ </varlistentry>
+ <varlistentry>
+ <term>
+ <option>--no-config-file</option>
+ </term>
+ <listitem>
+ <para> Disable reading from and writing to the config file.
+ </para>
+ </listitem>
+ </varlistentry>
+ <varlistentry>
+ <term>
+ <option>-v</option>
+ <option>--verbose</option>
+ </term>
+ <listitem>
+ <para> Set the verbosity level. A value of 0 will produce no
+ output (except option parsing errors).
+ </para>
+ </listitem>
+ </varlistentry>
+ <varlistentry>
+ <term>
+ <option>-h</option>
+ <option>--help</option>
+ </term>
+ <listitem>
+ <para> Print this message.
+ </para>
+ </listitem>
+ </varlistentry>
+ <varlistentry>
+ <term>
+ <option>-t</option>
+ <option>--file-tag</option>
+ </term>
+ <listitem>
+ <para> A string appended to the name of the file to indicate it
+ has been recoded.
+ </para>
+ </listitem>
+ </varlistentry>
+ <varlistentry>
+ <term>
+ <option>-w</option>
+ <option>--work-dir</option>
+ </term>
+ <listitem>
+ <para> The path to store temporary files. This could need several
+ hundred megabytes free.
+ </para>
+ </listitem>
+ </varlistentry>
+ <varlistentry>
+ <term>
+ <option>-d</option>
+ <option>--tree-depth</option>
+ </term>
+ <listitem>
+ <para> 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).
+ </para>
+ </listitem>
+ </varlistentry>
+ <varlistentry>
+ <term>
+ <option>-m</option>
+ <option>--max-size</option>
+ </term>
+ <listitem>
+ <para> 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.
+ </para>
+ </listitem>
+ </varlistentry>
+ <varlistentry>
+ <term>
+ <option>-F</option>
+ <option>--force</option>
+ </term>
+ <listitem>
+ <para> Overwrite files if they already exist.
+ </para>
+ </listitem>
+ </varlistentry>
+ <varlistentry>
+ <term>
+ <option>-C</option>
+ <option>--encoder</option>
+ </term>
+ <listitem>
+ <para> The encoder to use to create the output files. Options are
+ wave, lame or oggenc.
+ </para>
+ </listitem>
+ </varlistentry>
+ <varlistentry>
+ <term>
+ <option>-E</option>
+ <option>--encoder-options</option>
+ </term>
+ <listitem>
+ <para> Compression options for the encoder.
+ </para>
+ </listitem>
+ </varlistentry>
+ <varlistentry>
+ <term>
+ <option>-z</option>
+ <option>--compression-factor</option>
+ </term>
+ <listitem>
+ <para> If you change the lame options, you must change this
+ factor to match the compression rate of the new options. This
+ is used to estimate completed file size.
+ </para>
+ </listitem>
+ </varlistentry>
+ <varlistentry>
+ <term>
+ <option>-h</option>
+ <option>--help</option>
+ </term>
+ <listitem>
+ <para> Print this message.
+ </para>
+ </listitem>
+ </varlistentry>
+ <varlistentry>
+ <term>
+ <option>-p</option>
+ <option>--playlist</option>
+ </term>
+ <listitem>
+ <para> The playlist to convert. Playlists can be simple lists of
+ file paths, one per line, or .m3u files or the native XMMS
+ playlist file format.
+ </para>
+ </listitem>
+ </varlistentry>
+ <varlistentry>
+ <term>
+ <option>-x</option>
+ <option>--import-xmms</option>
+ </term>
+ <listitem>
+ <para> Get playlist from running instance of XMMS. (You must have
+ xmms-shell installed)
+ </para>
+ </listitem>
+ </varlistentry>
+ <varlistentry>
+ <term>
+ <option>-o</option>
+ <option>--output-dir</option>
+ </term>
+ <listitem>
+ <para> Where to write the output files.
+ </para>
+ </listitem>
+ </varlistentry>
+ <varlistentry>
+ <term>
+ <option>--index</option>
+ </term>
+ <listitem>
+ <para> Create an index file when in wav output mode.
+ </para>
+ </listitem>
+ </varlistentry>
+ <varlistentry>
+ <term>
+ <option>--no-normalize</option>
+ </term>
+ <listitem>
+ <para> Don't normalize the wav file before encoding.
+ </para>
+ </listitem>
+ </varlistentry>
+ </variablelist>
+ </refsect1>
+
+ <refsect1>
+ <title>FILES</title>
+ <para>mp3togo will read ~./mp3togo for configuration values if it
+ exists. This can be overridden with the --config command line
+ option.</para>
+ </refsect1>
+
+ <refsect1>
+ <title>SEE ALSO</title>
+ <para>lame (1), oggenc (1).</para>
+ </refsect1>
+
+ <refsect1>
+ <title>EXAMPLES</title>
+
+ <para>Load the files in playlist.m3u to the player mounted
+ on /mnt/usb:
+ <command>mp3togo -p playlist.m3u -o /mnt/usb</command>
+ </para>
+
+ <para>Load a single file to the player:
+ <command>mp3togo -o /mnt/usb /home/media/Music/Nina_Simone/The_Blues/Turn_Me_On.ogg</command>
+ </para>
+
+ <para>Load the playlist from the running XMMS to /mnt/usb in
+ ogg vorbis format: (requires xmms-shell)
+ <command>mp3togo -C oggenc -x -o /mnt/usb</command>
+ </para>
+
+ <para>Create wav files in ~/audio-cd to burn a CD from playlist.m3u:
+ <command>mp3togo -C wave -p playlist.m3u -m 700M -o ~/audio-cd</command>
+ </para>
+
+ <para>Create mp3 files on a mounted ISO CD image at /mnt/loop to
+ burn a mp3 CD:
+ <command>mp3togo -p playlist.m3u -o /mnt/loop</command>
+ </para>
+ </refsect1>
+
+ <refsect1>
+ <title>AUTHOR</title>
+
+ <para>This manual page was written by &dhusername; &dhemail; for
+ the &debian; system (but may be used by others). Permission is
+ granted to copy, distribute and/or modify this document under
+ the terms of the &gnu; General Public License, Version 2 any
+ later version published by the Free Software Foundation.
+ </para>
+ <para>
+ On Debian systems, the complete text of the GNU General Public
+ License can be found in /usr/share/common-licenses/GPL.
+ </para>
+ <para>
+ mp3togo can be found online at http://puddle.ca/mp3togo
+ </para>
+ </refsect1>
+</refentry>
+
+<!-- Keep this comment at the end of the file
+Local variables:
+mode: sgml
+sgml-omittag:t
+sgml-shorttag:t
+sgml-minimize-attributes:nil
+sgml-always-quote-attributes:t
+sgml-indent-step:2
+sgml-indent-data:t
+sgml-parent-document:nil
+sgml-default-dtd-file:nil
+sgml-exposed-tags:nil
+sgml-local-catalogs:nil
+sgml-local-ecat-files:nil
+End:
+-->
+
+
file:0cfbf08886fca9a91cb753ec8734c84fcbe52c9f(new)
--- /dev/null
+++ b/debian/pycompat
@@ -0,0 +1 @@
+2
file:df1fb418e66b276c0f03c57cc4575e7df3b07954(new)
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,42 @@
+#!/usr/bin/make -f
+# mp3togo debian/rules
+#
+# Simeon Veldstra 2006
+# Based on a file originaly written by Robert Millan.
+# This file is public domain.
+
+#DEB_TAR_SRCDIR := mp3togo-0.2.1
+#DEB_AUTO_CLEANUP_RCS := yes
+
+# Add here any variable or target overrides you need
+DEB_PYTHON_SYSTEM=pysupport
+
+#include /usr/share/cdbs/1/class/makefile.mk
+#include /usr/share/cdbs/1/rules/debhelper.mk
+#include /usr/share/cdbs/1/rules/tarball.mk
+#include /usr/share/cdbs/1/rules/simple-patchsys.mk
+
+# dh_pysupport
+include /usr/share/cdbs/1/rules/buildcore.mk
+include /usr/share/cdbs/1/rules/debhelper.mk
+include /usr/share/cdbs/1/class/python-distutils.mk
+include /usr/share/cdbs/1/rules/simple-patchsys.mk
+
+#DEB_ISNATIVE="True"
+
+build/mp3togo::
+ docbook-to-man debian/mp3togo.1.sgml > debian/mp3togo.1
+ dh_installman debian/mp3togo.1
+
+ # python-support:
+ #python setup.py build
+
+# python-support:
+#install:
+# python setup.py install --root=$(CURDIR)/debian/mp3togo
+#
+#binary-indep:
+# dh_pysupport
+# dh_installdeb
+
+
file:b23b708aca811ab698f267477afe1d16bd4d7193 -> file:deff07d815cc4550f27c8928a778b1ef73718ef5
--- a/mp3togo/__init__.py
+++ b/mp3togo/__init__.py
@@ -21,5 +21,5 @@
# __all__ = ('converter', 'main', 'options', 'setup')
-version = '0.5.7'
+version = '0.5.8'
file:d98c380b7f15b79e7d3ea9a59f506bdcb1768036 -> file:eaf9ed86b31108888575599e00ea0751f8239c50
--- a/mp3togo/conf.py
+++ b/mp3togo/conf.py
@@ -324,7 +324,7 @@ def make_args(helper, input, output, arg
if "###input###" in out:
out[out.index("###input###")] = input
if "###output###" in out:
- out[out.index("###output###")] = output
+ out[out.index("###output###")] = output
return out
file:cb442f942b87e5428ff6fc0d6c27667e10f88b15 -> file:a3279654e850a347242b8788b3ade6dff9a9de01
--- a/mp3togo/tags.py
+++ b/mp3togo/tags.py
@@ -188,7 +188,7 @@ class Tags(UserDict.DictMixin):
out.setAlbum(d['ALBUM'])
out.setTitle(d['TITLE'])
g = eyeD3.Genre()
- g.setId(d['GENRE'])
+ g.setId(d.get('GENRE', 12))
out.setGenre(g)
if d.has_key('COMMENT'):
out.addComment(d['COMMENT'])
file:ac10703f5937fe63cdce5e939ab5ee7c40d64004 -> file:54eb735f4950a9b0bff345721900200c3a66d831
--- a/mp3togo/task.py
+++ b/mp3togo/task.py
@@ -87,6 +87,7 @@ class SimpleTask:
self._output = out
self._outlock.release()
except:
+ # if verbosity is high enough, print something about the exception
self._status = FAILED
self._runlock.release()
return True
@@ -223,7 +224,7 @@ class Task(SimpleTask):
while not fp:
pass
while self._status in (RUNNING, PAUSED):
- wpid, status = os.waitpid(pid, os.WNOHANG)
+ wpid, status = os.waitpid(self._pid, os.WNOHANG)
if wpid == pid:
# Child exited
self._runlock.acquire()