Commit Graph

275 Commits

Author SHA1 Message Date
Thomas Vander Stichele
0c9d3c552b * morituri/common/program.py:
* morituri/rip/cd.py:
	* morituri/rip/image.py:
	  Add stdout to program.  Use it for getting musicbrainz info.
2012-12-06 16:44:54 +00:00
Thomas Vander Stichele
cec7f71502 * morituri/common/task.py:
Failed and done can stay unimplemented.
	  If we read stdout or stderr, reschedule immediately to process
	  all output before considering the possibility the program stopped.
2012-12-04 00:13:25 +00:00
Thomas Vander Stichele
7545829764 * morituri/common/config.py:
Add methods to get/set defeating of audio cache.
	  Make sure that we set read offset even if section is already there.
2012-12-04 00:12:38 +00:00
Thomas Vander Stichele
b8fd3f2931 * morituri/common/task.py:
* morituri/program/cdrdao.py:
	  Factor out a PopenTask base class.
2012-12-03 22:58:22 +00:00
Thomas Vander Stichele
5ddeca949e move import 2012-12-02 21:57:15 +00:00
Thomas Vander Stichele
0a0aadfc30 * morituri/test/test_common_gstreamer.py (added):
* morituri/common/gstreamer.py:
	* morituri/test/Makefile.am:
	  add functions to get versions of gstreamer, gst-python,
	  and element factory plugins.
2012-12-02 21:56:19 +00:00
Thomas Vander Stichele
5c4a63c1ab * morituri/common/common.py:
Remove migrated classes.
2012-12-02 17:54:37 +00:00
Thomas Vander Stichele
67540627fa * morituri/common/cache.py:
Disable the version-based persistence deleting.
	  Allow not creating a fresh ripresult when getting one.
2012-12-02 17:53:47 +00:00
Thomas Vander Stichele
306e6f2ad7 * morituri/common/cache.py:
* morituri/rip/debug.py:
	* morituri/test/test_common_cache.py:
	  Add rip debug resultcache list to list cached results.
2012-12-02 17:27:15 +00:00
Thomas Vander Stichele
b86febb3b1 pep8 fixes 2012-12-02 16:40:46 +00:00
Thomas Vander Stichele
c634dd0e92 * morituri/common/cache.py (added):
* morituri/test/cache (added):
	* morituri/test/cache/result (added):
	* morituri/test/cache/result/fe105a11.pickle (added):
	* morituri/test/test_common_cache.py (added):
	* morituri/common/Makefile.am:
	* morituri/common/program.py:
	* morituri/test/Makefile.am:
	  Extract ResultCache object into separate file.
2012-12-02 16:38:03 +00:00
Thomas Vander Stichele
3e0363de32 pychecker fixes 2012-12-02 12:31:45 +00:00
Thomas Vander Stichele
445708b4ea * morituri.spec.in:
* morituri/common/config.py:
	  Use XDG if we can import xdg.
	  Fix writing the config.
2012-12-02 12:07:18 +00:00
Thomas Vander Stichele
18c99b6e77 * morituri/common/drive.py:
* morituri/rip/drive.py:
	  Extract getDeviceInfo function.
2012-12-02 12:04:45 +00:00
Thomas Vander Stichele
1bf9272f18 * morituri/common/config.py (added):
* morituri/test/test_common_config.py (added):
	* morituri/common/Makefile.am:
	* morituri/test/Makefile.am:
	  First stab at adding a configuration file to store
	  drive read offsets.
2012-12-02 11:09:13 +00:00
Thomas Vander Stichele
cba7dbe41a pep8 fixes 2012-11-29 19:54:46 +00:00
Thomas Vander Stichele
f0cb567a0d * morituri/common/program.py:
* morituri/rip/cd.py:
	  Reset rip duration when we continue a rip but have to rerip
	  a track.
2012-11-28 08:19:43 +00:00
Thomas Vander Stichele
e67ad23894 * morituri/common/program.py:
* morituri/program/cdparanoia.py:
	* morituri/result/result.py:
	  Track ripping speed for test and encode per-track.
2012-11-27 08:09:51 +00:00
Thomas Vander Stichele
5b1e2c88a4 patch by: mustbenice
* morituri/common/program.py:
	* morituri/program/cdparanoia.py:
	* morituri/result/logger.py:
	* morituri/result/result.py:
	  Calculate speed of reading track.
	  Output Test and Copy speed per track in log.
2012-11-25 19:54:15 +00:00
Thomas Vander Stichele
6b50218701 * morituri/common/encode.py:
Also remove buggy audio parsers when encoding.
	  Fixes #73.
2012-11-23 16:39:34 +00:00
Thomas Vander Stichele
3c87608773 * morituri/common/encode.py:
Use vbr-quality instead of quality for vbr.  Fixes #94.
2012-11-23 16:30:05 +00:00
Thomas Vander Stichele
26827195c0 * morituri/common/program.py:
Add %y to template for year.  Fixes #98.
2012-11-22 23:22:26 +00:00
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
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
cd90c361a6 give a logname 2012-11-18 13:08:31 +00:00
Thomas Vander Stichele
20adca46fd fix header 2012-11-18 12:26:13 +00:00
Thomas Vander Stichele
0fab4515c6 pep8 fixes 2012-11-11 23:00:37 +00:00
Thomas Vander Stichele
e6a35146a7 pep8 fixes 2012-11-11 22:34:04 +00:00
Thomas Vander Stichele
77691747e5 pep8 fixes 2012-11-11 22:25:41 +00:00
Thomas Vander Stichele
29f71762da pep8 fixes 2012-11-11 22:23:25 +00:00
Thomas Vander Stichele
2f9dc86d86 pep8 fixes 2012-11-10 22:05:36 +00:00
Thomas Vander Stichele
ca7cd77dda pep8 fixes 2012-11-10 21:57:43 +00:00
Thomas Vander Stichele
a3fe7ba7e7 pep8 fixes 2012-11-10 21:57:06 +00:00
Thomas Vander Stichele
4ddca857f7 pep8 fixes 2012-11-10 21:56:30 +00:00
Thomas Vander Stichele
d248508f11 pep8 fixes 2012-11-10 21:53:16 +00:00
Thomas Vander Stichele
22d299c0ba pep8 fixes 2012-11-10 21:52:18 +00:00
Thomas Vander Stichele
6b45a9935b pep8 cleanup 2012-11-10 21:50:26 +00:00
Thomas Vander Stichele
fbb75dc91b pep8 cleanup 2012-11-10 21:48:04 +00:00
Thomas Vander Stichele
bbeaa7b940 remove whitespace 2012-11-10 20:27:17 +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
dbea1ca67f remove unused line 2012-08-12 11:52:24 +00:00
Thomas Vander Stichele
519baf6501 revert accidental commit 2012-07-12 09:40:00 +00:00
Thomas Vander Stichele
97101ec972 add new file 2012-07-12 09:38:59 +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
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