Commit Graph

407 Commits

Author SHA1 Message Date
Thomas Vander Stichele
9b4e653ae4 * morituri/common/common.py:
* morituri/common/program.py:
	* morituri/image/table.py:
	* morituri/rip/cd.py:
	* morituri/test/test_common_common.py:
	* morituri/test/test_image_toc.py:
	  Handle cases where disc_template and track_template are not in
	  the same directory.
2012-11-22 23:20:44 +00:00
Thomas Vander Stichele
d0435dc2ab * morituri/test/test_common_encode.py:
Work around https://bugzilla.gnome.org/show_bug.cgi?id=688625
2012-11-19 20:44:53 +00:00
Thomas Vander Stichele
3dc88a4a28 * morituri/test/common.py:
Make tests log.
2012-11-19 20:44:30 +00:00
Thomas Vander Stichele
794a4c3f5c * morituri/common/common.py:
* morituri/image/cue.py:
	* morituri/image/toc.py:
	  factor out getRealPath
2012-11-19 08:56:17 +00:00
Thomas Vander Stichele
56f1de4c5c * morituri/image/toc.py:
* morituri/test/test_image_toc.py:
	  Add test for getRealPath.  Fix bug found by it for absolute paths.
2012-11-19 08:50:09 +00:00
Thomas Vander Stichele
76d587185d * morituri/image/table.py:
* morituri/test/test_image_table.py:
	* morituri/test/test_image_toc.py:
	  Increase coverage.
2012-11-18 16:20:21 +00:00
Thomas Vander Stichele
5173f99b7a * Makefile.am:
* doc/Makefile.am:
	  Adapt to changing over to git module for python-command
2012-11-18 15:15:04 +00:00
Thomas Vander Stichele
3370acac68 * morituri/extern/task/gstreamer.py:
Fix wrong commit made to fix #89.
2012-11-18 14:57:56 +00:00
Thomas Vander Stichele
4aa0fb0438 * morituri/rip/offset.py:
Don't let an exception on testing an offset slip pass.
	  Fixes #99.
2012-11-17 19:38:33 +00:00
Thomas Vander Stichele
4a4e1ba128 * morituri/program/cdparanoia.py:
* morituri/rip/cd.py:
	  Add a number of tries to rip a track.
2012-11-11 22:40:53 +00:00
Thomas Vander Stichele
f564aec3e3 * misc/pep8.py (added):
* Makefile.am:
	  Add pep8 target.
2012-11-10 21:45:35 +00:00
Thomas Vander Stichele
f0c66013e3 * morituri/extern/task/gstreamer.py:
* morituri/test/test_common_checksum.py:
	  Protect backslashes in names.  Fixes #89.
2012-08-12 18:25:03 +00:00
Thomas Vander Stichele
1da3c8cdfb * morituri/common/drive.py:
If cdio.get_devices_with_cap finds a single drive, it returns a
	  str instead of a list.  Work around that bug.  Fixes #102.
	* morituri/test/test_common_drive.py (added):
	* morituri/test/Makefile.am:
	  Add test for it.  Caught a bug in my first implementation, too!
2012-08-12 18:03:21 +00:00
Thomas Vander Stichele
1e2f8aa93f * morituri/common/Makefile.am:
* morituri/common/checksum.py:
	* morituri/common/encode.py:
	  Add a GstPipelineTask that lets us log.
	  Handle checksumming of small tracks better.
2012-08-12 12:32:09 +00:00
Thomas Vander Stichele
91b852b485 * morituri/common/checksum.py:
* morituri/common/encode.py:
	  Add a GstPipelineTask that lets us log.
	  Handle checksumming of small tracks better.
2012-08-12 12:26:33 +00:00
Thomas Vander Stichele
1cfdcb7302 * morituri/rip/main.py:
Handle EmptyError.
2012-07-12 09:17:59 +00:00
Thomas Vander Stichele
6c50b72853 * morituri/rip/debug.py:
Add encode debug.
2012-07-12 09:12:13 +00:00
Thomas Vander Stichele
53db632202 * morituri/common/program.py:
Use a temp var to make code more readable.
2012-06-24 12:59:19 +00:00
Thomas Vander Stichele
12833ba67b * morituri/result/logger.py:
Fix logging of AR data
2012-06-24 12:56:59 +00:00
Thomas Vander Stichele
8a7a69a361 * morituri/common/program.py:
Tell us which track is not in the db.
2012-06-24 12:56:37 +00:00
Thomas Vander Stichele
a5cd47d44c * morituri/common/musicbrainzngs.py:
Handle multiple artists correctly.
2012-04-01 20:42:46 +00:00
Thomas Vander Stichele
9bf5892dbd patch by: Christophe Fergeau <cfergeau@redhat.com)
* morituri/common/program.py:
	  When morituri finds multiple matches for a given release, it only
	  keeps the releases whose length are the closest to the CD being
	  ripped.
	  However, this currently interacts badly with the --release-id
	  parameter because this duration filtering is done before trying to
	  do the release-id matching. The release that the user has specified
	  may have been removed from the potential matches by the time the
	  release
	  id match is tried.
	  This commit removes the duration filtering when the user explicitly
	  specified a release id. I've observed this bug with the first disc
	  of The Wall (Experience Edition) by the Pink Floyd.
	  Fixes #91.
2012-04-01 20:41:55 +00:00
Thomas Vander Stichele
93f033dfca patch by: Christophe Fergeau <cfergeau@redhat.com)
* morituri/common/program.py:
	  When --release-id is used, we are not making guesses based on the
	  CD lengths, so the message saying that we picked the closest match
	  in duration, which can still trigger, is inappropriate.
2012-04-01 20:40:21 +00:00
Thomas Vander Stichele
c4e170daad * TODO:
* morituri/common/program.py:
	* morituri/rip/cd.py:
	  Add rip cd rip --release-id as an option to select the exact
	  release this disc is a part of.
	  Fixes Radiohead - Pablo Honey and U2 - Achtung Baby
2012-01-23 10:09:24 +00:00
Thomas Vander Stichele
7f19859542 * morituri/rip/debug.py:
Properly write utf-8 encoded strings to stdout.
2012-01-22 18:55:59 +00:00
Thomas Vander Stichele
69a1e731a3 * morituri/common/program.py:
Actually return the result from verifyTrack.
	  Debug the cache loading some more.  Make a note for a TODO.
2012-01-22 11:00:55 +00:00
Thomas Vander Stichele
61a5d2432f * morituri/common/musicbrainzngs.py:
Get the artist credit for a track/album; Fixes Gorky - Gorky.
2012-01-21 18:05:26 +00:00
Thomas Vander Stichele
a8a7a33b0a * morituri/common/checksum.py:
* morituri/common/program.py:
	  Fix/add logging.
2012-01-21 18:04:41 +00:00
Thomas Vander Stichele
e617d40b47 * morituri.spec.in:
Spec fix.
	* morituri/image/image.py:
	  Log fix.
2012-01-21 18:04:00 +00:00
Thomas Vander Stichele
5e2f501e5e * morituri/rip/debug.py:
Remove musicbrainz command.
2011-10-29 14:58:05 +00:00
Thomas Vander Stichele
ef409afa12 * configure.ac:
Doing a pre-release.
2011-10-28 21:04:52 +00:00
Thomas Vander Stichele
e90b24a36e * morituri/test/test_common_program.py:
Remove use of musicbrainz module.
2011-10-28 18:57:54 +00:00
Thomas Vander Stichele
ff8fb84a2f * morituri/test/Makefile.am:
Don't package old musicbrainz test.
2011-10-28 18:54:50 +00:00
Thomas Vander Stichele
505e2e34c6 * morituri/extern/Makefile.am:
Hopefully fix both make and make distcheck.
2011-10-28 18:46:36 +00:00
Thomas Vander Stichele
2be21bce3c * morituri/test/Makefile.am:
* morituri/test/morituri.release.3451f29c-9bb8-4cc5-bfcc-bd50104b94f8.json (added):
	* morituri/test/test_common_musicbrainzngs.py (added):
	  Add test for previous bug of a release not having a date.
2011-10-28 17:50:18 +00:00
Thomas Vander Stichele
c2838ad05c * morituri/rip/main.py:
* morituri/common/musicbrainzngs.py:
	* morituri/common/program.py:
	* morituri/rip/cd.py:
	  Add -R option to rip to record API results for debugging.
2011-10-28 17:49:36 +00:00
Thomas Vander Stichele
cd6865c9d2 * morituri/common/musicbrainzngs.py:
Fix case of metadata not having length.
	  Fix case of release not having a date.
2011-10-28 16:36:39 +00:00
Thomas Vander Stichele
b5fc509747 * morituri/common/Makefile.am:
* morituri/common/musicbrainzngs.py:
	* morituri/common/program.py:
	* morituri/extern/Makefile.am:
	  Use musicbrainz NGS for ripping.
	  Can now rip Weezer, the Blue Album, both discs.
2011-10-22 15:52:57 +00:00
Thomas Vander Stichele
83d212a20e * morituri/rip/debug.py:
* morituri/common/musicbrainzngs.py (added):
	  Rewrite using python-musicbrainz-ngs.
	  Add rip debug musicbrainzngs command for testing,
	  seems to work on Weezer - Blue Album - disc 2
2011-10-19 22:37:37 +00:00
Thomas Vander Stichele
ae93a6d5e9 * morituri/extern/Makefile.am:
* morituri/extern/musicbrainzngs/musicbrainz.py (svn:special):
	* morituri/extern/musicbrainzngs/mbxml.py (svn:special):
	* morituri/extern/musicbrainzngs (added):
	* morituri/extern/musicbrainzngs/mbxml.py (added):
	* morituri/extern/musicbrainzngs/__init__.py (added):
	* morituri/extern/musicbrainzngs/musicbrainz.py (added):
	  Pull in my fork of python-musicbrainz-ngs
2011-10-19 22:36:14 +00:00
Thomas Vander Stichele
131535cde5 * morituri/common/musicbrainz.py:
* morituri/rip/debug.py:
	  Doc/output fixes.
2011-10-19 18:45:22 +00:00
Thomas Vander Stichele
3c669a4f29 * morituri/rip/debug.py:
Adapt to splitup.
2011-10-19 18:42:34 +00:00
Thomas Vander Stichele
fa1fba9bc2 * morituri/rip/debug.py:
Add rip debug musicbrainz command to look up information on
	  disc id's.
2011-10-19 18:15:42 +00:00
Thomas Vander Stichele
ef69de48ba * morituri/common/Makefile.am:
* morituri/common/musicbrainz.py:
	* morituri/common/program.py:
	* morituri/test/test_common_program.py:
	* morituri/test/Makefile.am:
	* morituri/test/test_common_musicbrainz.py (added):
	* morituri/common/musicbrainz.py (added):
	  Split off musicbrainz-specific code.
2011-10-19 18:00:36 +00:00
Thomas Vander Stichele
6ab37720df * morituri/common/Makefile.am:
* morituri/common/musicbrainz.py:
	* morituri/common/program.py:
	* morituri/test/Makefile.am:
	* morituri/test/test_common_musicbrainz.py (added):
	* morituri/common/musicbrainz.py (added):
	  Split off musicbrainz-specific code.
2011-10-19 18:00:11 +00:00
Thomas Vander Stichele
ad71fa06db * TODO:
* morituri/extern/task/task.py:
	  Instead of chaining next in multi tasks, making the call
	  chain larger (and exceed maximum depth on track 75), schedule
	  it immediately.
2011-10-19 17:34:02 +00:00
Thomas Vander Stichele
bf5c1f2c31 * morituri/test/Makefile.am:
Include test .xml responses.
2011-10-17 09:20:52 +00:00
Thomas Vander Stichele
2c27b73d09 * morituri/common/common.py:
Add shrinkPath to write shorter path names.
	* morituri/test/test_common_common.py (added):
	  Add test.
	* morituri/program/cdparanoia.py:
	  Catch ENAMETOOLONG and shrink path.
	* morituri/common/program.py:
	  Update track result's filename if it was shrunk.
	* morituri/rip/cd.py:
	  set the possibly shrunk path on the result.
2011-09-18 15:19:45 +00:00
Thomas Vander Stichele
4fdfb7f58c * morituri/program/cdparanoia.py:
Log properly again.
	  Properly set exception when we can't rename the file.
2011-09-18 09:18:47 +00:00
Thomas Vander Stichele
ba3dd85dc5 * morituri/extern/task/gstreamer.py:
Query using time if DEFAULT fails.
2011-09-15 14:23:25 +00:00