Commit Graph

540 Commits

Author SHA1 Message Date
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
Thomas Vander Stichele
516a01d47a * morituri/common/program.py:
Add Musicbrainz command.
2011-09-15 14:22:37 +00:00
Thomas Vander Stichele
513706eab6 add ivars to TrackMetadata 2011-09-04 14:21:29 +00:00
Thomas Vander Stichele
b467132c01 assert we get metadata 2011-09-04 14:19:56 +00:00
Thomas Vander Stichele
a43065d195 add tasks 2011-09-04 14:19:42 +00:00
Thomas Vander Stichele
2ed3f8837f * morituri/common/program.py:
If any track is missing duration, set the whole album duration
	  to 0.
2011-09-04 14:19:29 +00:00
Thomas Vander Stichele
60772e655b remove import 2011-09-04 14:18:14 +00:00
Thomas Vander Stichele
44559cc0b0 change to description. 2011-09-04 14:18:00 +00:00
Thomas Vander Stichele
d2672cfa6a * morituri/common/gstreamer.py:
flacparse is busted in gst-plugins-good 0.10.30 too.
2011-09-04 14:17:47 +00:00
Thomas Vander Stichele
e6176d8b8c doc fix 2011-08-25 11:04:20 +00:00
Thomas Vander Stichele
4f377406f9 make sure we stop on bad crc 2011-08-15 22:39:54 +00:00
Thomas Vander Stichele
fdbaa33b1f * task.py:
Better logging when scheduling.
	* gstreamer.py:
	  If paused() returns True, don't go to playing.
	  add a method for querying duration in the common case.
2011-08-15 10:25:55 +00:00
Thomas Vander Stichele
928e2e9ba7 print out duration before for comparison on musicbrainz 2011-08-15 09:03:13 +00:00
Thomas Vander Stichele
7cff47a8d4 * morituri/common/program.py:
Don't fail if there is no metadata.
2011-08-14 14:48:02 +00:00
Thomas Vander Stichele
e60b6d8441 * morituri/common/program.py:
* morituri/rip/debug.py:
	  Pychecker fixes.
2011-08-14 14:20:06 +00:00
Thomas Vander Stichele
367af25232 * TODO:
Add a note about das capital disc.
	* morituri/test/release.08397059-86c1-463b-8ed0-cd596dbd174f.xml:
	* morituri/test/release.93a6268c-ddf1-4898-bf93-fb862b1c5c5e.xml:
	  Add musicbrainz ws1 results for Das Capital and Ladyhawke.
	* morituri/test/test_common_program.py:
	  Fix typos.
	  Add tests for Ladyhawke and Das Capital duration and parsing.
	* morituri/test/test_image_table.py:
	  Fix according to new algorithm.
	* morituri/test/test_image_toc.py:
	  Get frame length for both cd's.
	* morituri/image/table.py:
	  Add getFrameLength method.  Fix up duration.
2011-08-14 14:19:50 +00:00
Thomas Vander Stichele
2273db764c * morituri/common/program.py:
* morituri/rip/cd.py:
	  Always print MusicBrainz URL.
2011-08-14 12:20:30 +00:00
Thomas Vander Stichele
d43860bdfb * morituri/test/release.c7d919f4-3ea0-4c4b-a230-b3605f069440.xml:
Add release data for Bettie Serveert, Lamprey
	* morituri/test/test_common_program.py:
	  Add a test for parsing and getting the whole duration.
	* morituri/common/common.py:
	  Add a method to format time.
	* morituri/common/program.py:
	  Add duration to tracks and release metadatas.
	  When there are multiple matches, look up the closest in duration.
	  Make sure that multiple matches closest in duration contain same
	  artist and title.
	  Complain about the other ones.
	* morituri/image/table.py:
	  Add a method to calculate a duration from the table.
	* morituri/test/test_image_table.py:
	  Add a test for it.
2011-08-14 12:18:51 +00:00
Thomas Vander Stichele
e95d7a159b * morituri/rip/cd.py:
Make sure we definitely fail on failed checksum.
2011-08-13 16:42:52 +00:00
Thomas Vander Stichele
a4da75cf0a update 2011-08-13 16:35:54 +00:00
Thomas Vander Stichele
63e705578d * doc/release:
Add note on actually running.
	* morituri/common/program.py:
	  Fix when running rip cd rip --unknown
2011-08-13 09:50:07 +00:00
Thomas Vander Stichele
ac2ab6a34a * task.py:
Remove scrubFilename call.
2011-08-08 11:37:09 +00:00
Thomas Vander Stichele
bc62f92ce4 * task.py:
Pull in getExceptionMessage privately.
2011-08-08 11:35:35 +00:00
Thomas Vander Stichele
a8c437307c * morituri/extern/task/task.py:
Also stub out log calls on Runner.
2011-08-07 18:24:01 +00:00
Thomas Vander Stichele
c8e5545776 * morituri/extern/task/task.py:
Also handle error() log calls.
2011-08-07 18:20:21 +00:00
Thomas Vander Stichele
a8dddb9d70 * morituri/program/cdparanoia.py:
Make sure exceptions don't prevent the task from chaining up
	  to the parent stop() implementation, giving the runner a chance
	  to actually stop.
2011-08-07 17:57:24 +00:00
Thomas Vander Stichele
3093d50986 * morituri/rip/debug.py:
Add checksum task for debugging.
2011-08-06 12:26:04 +00:00
Thomas Vander Stichele
b5e1e8da7d * gstreamer.py:
* task.py:
	  Don't rely on the log module; users that want to log
	  should first subclass from a log class that implements
	  warning/info/debug/log
2011-08-05 20:21:31 +00:00
Thomas Vander Stichele
8af605c2c0 * gstreamer.py:
Document bus and pipeline.  Make bus public.
2011-08-05 20:19:58 +00:00
Thomas Vander Stichele
0da4d75935 update headers 2011-08-05 19:19:01 +00:00
Thomas Vander Stichele
8ec7bcbb9d * morituri/common/checksum.py:
* morituri/common/common.py:
	* morituri/common/encode.py:
	* morituri/image/image.py:
	* morituri/test/test_common_encode.py:
	  Moved quoteParse.
2011-08-05 19:18:10 +00:00
Thomas Vander Stichele
95cd741904 * gstreamer.py:
Add quoteParse() method.
2011-08-05 19:16:40 +00:00
Thomas Vander Stichele
7ae0f41457 * gstreamer.py:
Add getPipeline() method.
	  Base class implementation uses getPipelineDesc().
2011-08-05 19:11:00 +00:00
Thomas Vander Stichele
55c4bddfcf * morituri/common/Makefile.am:
* morituri/common/checksum.py:
	* morituri/common/gstreamer.py:
	* morituri/extern/Makefile.am:
	* morituri/extern/task/gstreamer.py:
	* morituri/common/gstreamer.py (added):
	  Extract function to remove audio parsers.
	  Fix up dist.
2011-08-05 19:04:53 +00:00
Thomas Vander Stichele
82287a32cc add module __init__ 2011-08-05 18:55:28 +00:00
Thomas Vander Stichele
798a209195 * morituri/extern/task (added):
* morituri/extern/task/taskgtk.py (added):
	* morituri/extern/task/gstreamer.py (added):
	* morituri/extern/task/task.py (added):
	* morituri/common/taskgtk.py (deleted):
	* morituri/common/gstreamer.py (deleted):
	* morituri/common/task.py (deleted):
	  Move task-related modules into an extern directory so other
	  projects can use them.
	* morituri/common/checksum.py:
	* morituri/common/encode.py:
	* morituri/image/image.py:
	* morituri/program/cdparanoia.py:
	* morituri/program/cdrdao.py:
	* morituri/rip/cd.py:
	* morituri/rip/debug.py:
	* morituri/rip/image.py:
	* morituri/rip/main.py:
	* morituri/rip/offset.py:
	* morituri/test/test_common_checksum.py:
	* morituri/test/test_common_encode.py:
	* morituri/test/test_image_image.py:
	  Adapt.  Tests work.
2011-08-05 18:50:51 +00:00
Thomas Vander Stichele
b3bbf55ca2 * morituri/program/cdrdao.py:
Avoid floating point error.
2011-07-20 02:37:00 +00:00
Thomas Vander Stichele
5f8e0a5cc4 * morituri/common/task.py:
Log which task we are notifying progress on.
	* morituri/common/program.py:
	  Solve a problem where a release does not have an .id,
	  which means it's only half in musicbrainz (artist
	  and title, but no URL to the disc)
2011-07-09 10:06:56 +00:00
Thomas Vander Stichele
41045e8171 add 2011-07-09 10:05:24 +00:00
Thomas Vander Stichele
5071034dfb * morituri/program/cdrdao.py:
Fix log output.
	  Do progress output while scanning TOC.
2011-07-09 10:04:59 +00:00
Thomas Vander Stichele
36b98423b5 * configure.ac:
* doc/release:
	  Back to trunk.
2011-06-05 16:03:33 +00:00
Thomas Vander Stichele
c060a3ecb9 releasing 0.1.2 2011-06-05 15:43:17 +00:00
Thomas Vander Stichele
7e5439ec78 remove fake entry 2011-06-05 14:57:36 +00:00
Thomas Vander Stichele
42bf60c304 add gtk stuff to blacklist 2011-06-05 14:39:14 +00:00
Thomas Vander Stichele
bdbd7768eb * morituri/rip/cd.py:
Use %default in options description.
2011-05-31 08:27:44 +00:00
Thomas Vander Stichele
0157c084a1 * morituri/rip/cd.py:
Ouch, was using the DISC TEMPLATE for the tracks.
2011-05-31 08:25:01 +00:00
Thomas Vander Stichele
c783e19605 * morituri/test/test_common_program.py:
Add a test for the template in #66.
2011-05-30 18:29:37 +00:00
Thomas Vander Stichele
ffbc4268fd * morituri/rip/cd.py:
Templates should have same number of slashes.
	  This avoids #66.
	  (Possibly, it should also be the same directory, or more code
	   should be written to handle that case).
	* morituri/rip/main.py:
	  Catch CommandError.
2011-05-30 18:25:40 +00:00
Thomas Vander Stichele
263260f820 * morituri/rip/cd.py:
Create variables for default templates.
2011-05-30 18:04:24 +00:00