Commit Graph

270 Commits

Author SHA1 Message Date
Thomas Vander Stichele
08fc4f67a6 * morituri/common/program.py:
* morituri/image/table.py:
	* morituri/rip/cd.py:
	  Get CDDB disc id.  Use it to print info when not found on
	  MusicBrainz.
2011-01-02 17:14:26 +00:00
Thomas Vander Stichele
568f1b7a4e * morituri/rip/cd.py:
Add -U/--unknown option to continue ripping even if the CD is
	  unknown.  Default to False.
2011-01-01 11:28:34 +00:00
Thomas Vander Stichele
6581261a76 * morituri/common/program.py:
* morituri/rip/cd.py:
	  Add load and eject device.  Do so before and after ripping.
2011-01-01 11:24:26 +00:00
Thomas Vander Stichele
e0434f732c patch by: Loïc Minier <lool at debian dot org>
* examples/ARcalibrate.py:
	* examples/ARcue.py:
	* examples/readdisc.py:
	* morituri/rip/cd.py:
	* morituri/rip/offset.py:
	  s/reponse/response.
	  Fixes #51.
2010-11-14 22:48:15 +00:00
Thomas Vander Stichele
4fafb7d148 * morituri/program/cdrdao.py:
Add logCategory to CDRDAO tasks.
	  Remove errors from parser, set them publically on task.
	  Properly raise exceptions on data cd's with correct stack origin.
2010-11-08 20:00:43 +00:00
Thomas Vander Stichele
eebd632eef * morituri/common/program.py:
Comment where we got the template variables from.
	* morituri/rip/cd.py:
	  Document the template variables.
2010-07-08 21:37:49 +00:00
Thomas Vander Stichele
941db66398 * morituri/program/cdparanoia.py:
Warn about missing cdparanoia too.
2010-06-18 22:28:13 +00:00
Thomas Vander Stichele
0c5e13ce0f * morituri/common/common.py:
Add MissingDependencyException.
	* morituri/program/cdrdao.py:
	* morituri/rip/main.py:
	  Use it to warn about missing cdrdao.
2010-06-18 22:02:53 +00:00
Thomas Vander Stichele
babf47ec1d * morituri/common/task.py:
Add exception traceback for easier debugging.
2010-06-18 21:52:20 +00:00
Thomas Vander Stichele
c02547ac44 * morituri.spec.in:
Add requires for python-setuptools since we use parse_version.
	  Fixes #32.
2010-05-23 18:37:24 +00:00
Thomas Vander Stichele
b918630f5e * morituri/common/program.py:
Set results by default so that it is set even if we get an
	  exception getting them.
	  Fixes #35.
2010-05-23 18:29:08 +00:00
Thomas Vander Stichele
cf1d8674ed * morituri/test/test_image_toc.py:
Fix distcheck by writing unicode toc filename in a temp dir.
2010-04-25 19:39:39 +00:00
Thomas Vander Stichele
243d949853 * morituri/rip/cd.py:
Log the version at the beginning to help in bug reports.
2010-04-25 17:41:30 +00:00
Thomas Vander Stichele
86c97aa63e * morituri/rip/main.py:
Fix another UnicodeEncodeError problem as mentioned in #25.
2010-04-25 17:39:30 +00:00
Thomas Vander Stichele
171621d06c * morituri/test/Makefile.am:
* morituri/test/jose.toc (added):
	* morituri/test/JoséGonzález.toc (deleted):
	  Rename utf-8 file to a normal file.
	* morituri/test/common.py:
	* morituri/test/test_common_checksum.py:
	* morituri/test/test_common_encode.py:
	* morituri/test/test_image_image.py:
	* morituri/test/test_image_toc.py:
	  Copy the normal file first to the utf-8 filename, if supported.
	  Skip tests that need unicode when we are not in a utf-8 locale.
2010-04-17 23:07:57 +00:00
Thomas Vander Stichele
0db1c45bfc * configure.ac:
* doc/release:
	  Back to trunk.
2010-04-16 22:19:38 +00:00
Thomas Vander Stichele
06101f2ad4 releasing 0.1.1, Dead 2010-04-16 21:54:25 +00:00
Thomas Vander Stichele
c68848026a * morituri/common/encode.py:
* morituri/rip/image.py:
	  Provide status on the retagging.
2010-04-14 22:01:45 +00:00
Thomas Vander Stichele
710a9ebb35 patch by: Peter Oliver
* morituri/program/cdparanoia.py:
	  Respect umask for encoded files.  Fixes #17.
2010-04-14 22:01:16 +00:00
Thomas Vander Stichele
3361edbee2 * morituri/common/encode.py:
Before moving the newly tagged file to overwrite the original
	  one, copy over mode.
2010-04-14 21:44:09 +00:00
Thomas Vander Stichele
ed6c468fba * morituri/common/program.py:
Commit one missing line from patch in #4 for multi-artist discs.
2010-04-14 08:02:35 +00:00
Thomas Vander Stichele
db74af7ff4 patch by: Peter Oliver.
* morituri/common/program.py:
	  Handle multi-artist releases where track artist is unset.
	  Fixes #14.
2010-04-14 07:58:14 +00:00
Thomas Vander Stichele
192c047ae6 * morituri/rip/image.py:
Fix more utf-8 issues.
2010-04-14 07:55:05 +00:00
Thomas Vander Stichele
887ee06c65 * morituri/rip/image.py:
Fix more utf-8 issues.
2010-04-14 07:23:06 +00:00
Thomas Vander Stichele
5b965a757b * morituri/image/image.py:
Remove dead code.
2010-04-13 22:10:58 +00:00
Thomas Vander Stichele
cee915fbd2 * morituri/common/encode.py:
Fix wrong code for checksum comparison.
2010-04-13 22:10:06 +00:00
Thomas Vander Stichele
25ed7459b1 * morituri/common/program.py:
Rename some vars to start with mbid.  Fix pychecker issues.
2010-04-13 22:09:22 +00:00
Thomas Vander Stichele
297451ea0e * morituri/common/program.py:
Add a retagging command.
	  Add a getMusicBrainz() method.
	* morituri/rip/cd.py:
	  Use it.
	* morituri/image/image.py:
	  Add a task to retag an image.
	* morituri/rip/image.py:
	  Add a command to retag an image.
2010-04-13 21:57:29 +00:00
Thomas Vander Stichele
d9ca12d7cc * morituri/common/encode.py:
Add tasks to read, write, and safely retag flac files.
	* morituri/test/test_common_encode.py:
	  Add tests for this.
2010-04-13 21:55:35 +00:00
Thomas Vander Stichele
7515cf9e73 * morituri/common/checksum.py:
Style fixes.
	* morituri/common/common.py:
	  Add functions to convert a gst.TagList to a dict and compare them.
	* morituri/common/task.py:
	  Add setAndRaiseException which gives us an appropriate
	  exceptionMessage as if we raised where we called this new function.
2010-04-13 21:53:43 +00:00
Thomas Vander Stichele
310a3789c0 * morituri/common/encode.py:
pychecker fix.
2010-04-13 14:12:17 +00:00
Thomas Vander Stichele
a787676239 * morituri/common/encode.py:
Add a task to read tags.
	* morituri/test/test_common_encode.py:
	  Add a test.
2010-04-13 07:37:01 +00:00
Thomas Vander Stichele
2e7a3974c4 * morituri/common/encode.py:
Add a vbr profile.
2010-04-11 17:14:37 +00:00
Thomas Vander Stichele
b3aa22194b * morituri/rip/image.py:
Don't splitext on inputdir; fixes encoding of directories like
	  Sigur Ros - Takk... (which removed a period)
2010-04-10 23:01:54 +00:00
Thomas Vander Stichele
c34546d70a * morituri/image/table.py:
* morituri/program/cdparanoia.py:
	  Do some 80 character cleanups.
2010-04-09 16:20:41 +00:00
Thomas Vander Stichele
b1155ed183 * morituri/rip/image.py:
Fix problem to encode from files with unicode chars.
2010-04-08 21:07:25 +00:00
Thomas Vander Stichele
e124c79c64 * morituri/program/cdparanoia.py:
Add some debug.
	* morituri/common/encode.py:
	  Add more debug.
	  Handle the case where peak is full scale, and peakdB thus 0,
	  which triggered not setting self.peak.
2010-04-08 21:06:52 +00:00
Thomas Vander Stichele
af0909600d patch by: Peter Oliver.
* morituri/common/program.py:
	  Allow using sortName for artist/track using %S/%s.
	  Fixes #19.
2010-04-06 00:17:40 +00:00
Thomas Vander Stichele
98213c4196 * doc/release:
Document having clean test run.
	* morituri/common/encode.py:
	  Catch and properly stop on gst.QueryError.
	  Don't set peak in stop if we had an error.
	* morituri/test/test_common_encode.py:
	* morituri/test/test_common_renamer.py:
	* morituri/test/test_image_cue.py:
	  Clean up after tests.
2010-04-06 00:02:56 +00:00
Thomas Vander Stichele
f978907fcf * morituri/common/task.py:
* morituri/image/cue.py:
	  Add logCategory.
	* morituri/image/image.py:
	  If subtasks had an exception, retrigger the exception and stop.
2010-04-05 23:31:34 +00:00
Thomas Vander Stichele
8ea1dc025d * morituri/image/image.py:
Fix AudioLengthTask for the case where we don't have the decoder,
	  by instead of doing get_state, waiting for an ASYNC_DONE or ERROR
	  message.  Properly raise a gst.GError in that case.
	* morituri/common/task.py:
	  Add some debug.
	* morituri/test/test_image_image.py:
	  After this fix, we now catch the TYPE_NOT_FOUND because of an
	  empty stream instead of the later gst.QueryError.
	* morituri/test/test_common_encode.py:
	  Let us know what it is if not a gst.QueryError.
2010-04-05 23:20:40 +00:00
Thomas Vander Stichele
ecd6e15783 * doc/Makefile.am:
Don't put rip.1 manpage in subdir.
2010-04-04 23:54:41 +00:00
Thomas Vander Stichele
47bfa0ee4c * morituri/common/common.py:
add quoteParse function to quote properly for gst.parse_launch()
	* morituri/common/checksum.py:
	  Fix single quote problem.
	  use self.setException()
	* morituri/common/encode.py:
	  Fix single quote problem.
	* morituri/image/image.py:
	  Fix single quote problem.
	  Reraise gst.QueryError.
	* morituri/test/test_common_encode.py:
	* morituri/test/test_common_encode.py (added):
	  Add tests for unicode/single/double quote.
	* morituri/test/test_image_image.py:
	* morituri/test/test_common_checksum.py:
	  Add tests for single/double quote.
	* morituri/test/common.py:
	  add twisted-like failUnlessRaises to TestCase that returns
	  the exception, so we can check wrapped exceptions in TaskException.
	  Fixes #16.
2010-04-04 23:21:10 +00:00
Thomas Vander Stichele
3000f0a1e7 * morituri/common/common.py:
add quoteParse function to quote properly for gst.parse_launch()
	* morituri/common/checksum.py:
	  Fix single quote problem.
	  use self.setException()
	* morituri/common/encode.py:
	  Fix single quote problem.
	* morituri/image/image.py:
	  Fix single quote problem.
	  Reraise gst.QueryError.
	* morituri/test/test_common_encode.py:
	* morituri/test/test_common_encode.py (added):
	  Add tests for unicode/single/double quote.
	* morituri/test/test_image_image.py:
	* morituri/test/test_common_checksum.py:
	  Add tests for single/double quote.
	* morituri/test/common.py:
	  add twisted-like failUnlessRaises to TestCase that returns
	  the exception, so we can check wrapped exceptions in TaskException.
2010-04-04 23:20:52 +00:00
Thomas Vander Stichele
6ae35a7a08 * morituri/common/task.py:
Wrap exceptions during tasks in a TaskException, storing the
	  message, for improved error reporting later on.
2010-04-04 23:10:44 +00:00
Thomas Vander Stichele
96e5fb2c2c * doc/Makefile.am:
* morituri.spec.in:
	* morituri/extern/Makefile.am:
	  Use help2man.py to generate manpage.
2010-04-04 23:08:35 +00:00
Thomas Vander Stichele
22a3554381 * morituri/common/encode.py:
* morituri/common/program.py:
	* morituri/image/image.py:
	* morituri/program/cdparanoia.py:
	* morituri/rip/cd.py:
	* morituri/rip/image.py:
	* morituri/rip/offset.py:
	  Move all gst-using imports inside functions and classes
	  to avoid 'import gst' eating our options.
	  Fixes #12.
2010-04-04 19:29:49 +00:00
Thomas Vander Stichele
cadc896c93 * bin/Makefile.am:
Install rip as the script.
2010-03-15 15:20:03 +00:00
Thomas Vander Stichele
c6d374bd16 * morituri/common/Makefile.am:
Add missing result.py
	* morituri/test/Makefile.am:
	* morituri/test/test_image_toc.py:
	* morituri/test/JoséGonzález.toc (added):
	* morituri/test/José González.toc (deleted):
	  automake doesn't handle spaces in names, so move it.
2010-03-15 15:16:14 +00:00
Thomas Vander Stichele
f432ae8e47 * bin/rip.in:
Add our PYTHONLIBDIR to sys.path if needed.  Should make this
	  work when doing ./configure; sudo checkinstall make install
	  on e.g. Ubuntu.
2010-03-15 14:23:45 +00:00