Commit Graph

75 Commits

Author SHA1 Message Date
Thomas Vander Stichele
1a55ff8eaa * examples/readdisc.py:
Get our metadata only from the toc.
2009-05-16 09:01:37 +00:00
Thomas Vander Stichele
cc61a1d2dd * examples/readdisc.py:
Also work for discs without htoa.
2009-05-16 08:02:02 +00:00
Thomas Vander Stichele
be1780f658 * examples/readdisc.py:
Write .m3u file.
2009-05-16 07:31:52 +00:00
Thomas Vander Stichele
a5735b277b tell us when we're wrong 2009-05-15 21:02:19 +00:00
Thomas Vander Stichele
dc5f2ba75f * examples/readdisc.py:
Rip HTOA as well.  Add disc-template parameter.
2009-05-15 20:40:20 +00:00
Thomas Vander Stichele
e0ed33b1da * morituri/program/cdparanoia.py:
Fix up track counting so HTOA can be ripped again.
	* examples/readhtoa.py:
	  Fix up example so it works again, tested on Silent Alarm.
2009-05-15 19:42:08 +00:00
Thomas Vander Stichele
5cae5cf60f * morituri/image/table.py:
Update .cue writing:
	  - customise program name
	  - add DISCID
	  - use counter for FILE lines
	  - put FILE line before TRACK if track does not have INDEX 00
	  Take counter into account for setFile
	* examples/readdisc.py:
	  Add --track-template.
	  Pass counter to setFile.
2009-05-15 08:08:22 +00:00
Thomas Vander Stichele
4040fafd3f * examples/readhtoa.py:
Fix example.
2009-05-10 14:51:29 +00:00
Thomas Vander Stichele
18b13eb84f * examples/readdisc.py:
filter out slashes when deciding on file names.
2009-05-07 11:30:55 +00:00
Thomas Vander Stichele
9fb4264934 * morituri/common/common.py:
Set the object when we don't persist.
	* examples/readdisc.py:
	  Small fixes.
2009-05-07 09:11:23 +00:00
Thomas Vander Stichele
75e8f0df5f * examples/readdisc.py:
Fix up cue file reading.
2009-05-06 21:58:57 +00:00
Thomas Vander Stichele
1485ef790c * examples/readdisc.py:
Add musicbrainz code for disc naming.
2009-05-06 21:45:12 +00:00
Thomas Vander Stichele
2f464207db * morituri/image/table.py:
Add logging.
	  Add methods to clear a table of files, and to absolutize indexes
	  as long as the source is the same file, and to set a File on a
	  given index, adjusting all following indexes that match the
	  duration, and check if the IndexTable has all information for a TOC.
	* morituri/image/toc.py:
	  Add logging.
	  Use a counter for the source.
	  Fix up index offset calculation.
	* morituri/program/cdrdao.py:
	  Use a real IndexTable as the result, instead of a TocFile.
	* morituri/image/cue.py:
	  Use a real IndexTable to store tracks.
	* morituri/test/test_image_toc.py:
	  The toc file now has a table which has the tracks.
	  Fix the tests to adjust for wrong index calculations.
	* morituri/test/test_image_cue.py:
	* morituri/test/test_image_image.py:
	* morituri/image/image.py:
	  The cue file now has a table which has the tracks.
	* morituri/test/test_image_table.py:
	  Add assertions to make sure when the table can serve as a TOC.
	* examples/readdisc.py:
	  Adjust for changes.  Fix up to include AccurateRip results.
	  First time we can do a complete normal rip including verifying
	  against AccurateRip results!
2009-05-05 10:01:41 +00:00
Thomas Vander Stichele
a5d70dd317 * examples/readdisc.py:
* morituri/image/table.py:
	* morituri/test/test_image_table.py:
	  Fix up and deprecate stuff.
2009-05-04 23:10:39 +00:00
Thomas Vander Stichele
c17a28d7ae * examples/movecue.py:
* examples/readcue.py:
	* morituri/image/cue.py:
	* morituri/image/image.py:
	* morituri/image/toc.py:
	* morituri/program/cdrdao.py:
	* morituri/test/test_image_cue.py:
	* morituri/test/test_image_toc.py:
	  Cue -> CueFile
	  TOC -> TocFile
2009-05-04 16:01:19 +00:00
Thomas Vander Stichele
bc36bf3aa5 * examples/readdisc.py (added):
Add an example to read a whole disc.  Doesn't work yet.
2009-05-04 15:58:03 +00:00
Thomas Vander Stichele
4b904cfcbc * examples/readhtoa.py:
Fix up readhtoa example.  Add offset option.
2009-05-04 14:40:39 +00:00
Thomas Vander Stichele
d07fde2c96 * examples/ARcalibrate.py:
* examples/readhtoa.py:
	* examples/readtoc.py:
	* morituri/program/cdrdao.py:
	  Rename ReadTOCTask to ReadIndexTableTask.
	  Rename ReadTableTask to ReadTOCTask.
2009-05-04 13:51:11 +00:00
Thomas Vander Stichele
9841d5e2fb handle not having a toc 2009-05-04 13:48:22 +00:00
Thomas Vander Stichele
3a75cb2d0f * morituri/program/cdrdao.py:
Convert ReadTableTask to a CDRDAOTask subclass.
	* examples/ARcalibrate.py:
	* morituri/program/cdparanoia.py:
	  Adapt.
2009-05-04 13:48:18 +00:00
Thomas Vander Stichele
6769480d2d fail if we don't have a toc 2009-05-04 13:04:19 +00:00
Thomas Vander Stichele
99d90552d3 * examples/ARcue.py:
Handle case where we have no matching response.
2009-05-04 08:39:12 +00:00
Thomas Vander Stichele
66033faac7 * examples/readtrack.py:
Allow specifying the track to save.
2009-05-03 19:16:05 +00:00
Thomas Vander Stichele
d1c3bb3def * morituri/program/cdparanoia.py:
Add a task to read and verify a track.
	* examples/readtrack.py:
	  Use it to clean up code.
	* morituri/common/task.py:
	  describe a MultiTask better.
2009-05-03 17:44:23 +00:00
Thomas Vander Stichele
daaffb78e7 * morituri/common/common.py:
Create a Persister class to wrap a possible pickle path.
	* examples/trm.py:
	  Use it.
2009-05-03 17:04:42 +00:00
Thomas Vander Stichele
81eddd26b8 verify cdparanoia's output 2009-05-03 14:54:52 +00:00
Thomas Vander Stichele
d8e288d848 * morituri/program/cdparanoia.py:
Add table to __init__, so we can correctly calculate cdparanoia's
	  strange ripping regions.
	* examples/ARcalibrate.py:
	  When we found a positive match on a first track, match all the other
	  tracks too for confirmation.
2009-05-03 12:59:37 +00:00
Thomas Vander Stichele
fc907f1953 * morituri/common/task.py:
* morituri/common/taskgtk.py:
	  Split off GtkProgressRunner in separate module to not import gtk
	  everywhere.
	* examples/ARcalibrate.py:
	* examples/ARcue.py:
	* examples/gtkchecksum.py:
	* examples/trm.py:
	  Adapt.
2009-05-03 10:20:22 +00:00
Thomas Vander Stichele
05e90de6e3 * examples/ARcalibrate.py (added):
Add an example that calculates the read offset of your drive
	  using AccurateRip.
2009-05-03 10:08:03 +00:00
Thomas Vander Stichele
70a3c83ec3 add logging
fix up for cue->table rename
2009-05-03 09:54:43 +00:00
Thomas Vander Stichele
2acff6bd94 * examples/readhtoa.py (added):
Add an example that detects and rips the Hidden Track One Audio.
2009-05-01 20:05:04 +00:00
Thomas Vander Stichele
8286bf9b22 * examples/readtoc.py:
* morituri/program/cdrdao.py (added):
	  Move the ReadTocTask to the new cdrdao module.
2009-05-01 18:57:28 +00:00
Thomas Vander Stichele
54c7322a04 * examples/readtrack.py:
* morituri/program/cdparanoia.py:
	  Move ReadTrackTask to cdparanoia module.
2009-05-01 18:52:51 +00:00
Thomas Vander Stichele
5d6fb6315a update example 2009-05-01 18:35:52 +00:00
Thomas Vander Stichele
1f183d60b7 * examples/readtrack.py (added):
Add an example that reads a track using cdparanoia.
2009-05-01 18:32:12 +00:00
Thomas Vander Stichele
5b0bfd4422 * examples/trm.py:
Allow loading and saving fingerprints from a pickle.
2009-05-01 12:30:14 +00:00
Thomas Vander Stichele
0a5269b2bf * examples/readtoc.py:
Update to work on my desktop.
2009-05-01 09:18:21 +00:00
Thomas Vander Stichele
f8b76ae95c * examples/readtoc.py:
Extract and print TOC.
2009-04-27 23:24:24 +00:00
Thomas Vander Stichele
748d630ba6 * examples/readtoc.py:
get errors from output too.
2009-04-27 22:16:11 +00:00
Thomas Vander Stichele
63515e61f3 * examples/movecue.py (added):
Add a script that moves a .cue file in its corresponding directory.
2009-04-26 17:29:33 +00:00
Thomas Vander Stichele
a4f92658da fix 2009-04-20 23:09:05 +00:00
Thomas Vander Stichele
a9ec95e56d * morituri/common/task.py:
Add a 'described' method so listeners can get proper notification
	  of description changes, and update their description in between
	  progress changes.
	  Add a MultiCombinedTask that reports on progress over all tasks
	  combined.
	* examples/trm.py:
	  Add a playlist option to the example.  Still needs to store results
	  to pickles, preferably after each completed task.
	* morituri/common/checksum.py:
	  Add audioconvert to make sure we can trm ogg files.
2009-04-20 22:20:07 +00:00
Thomas Vander Stichele
8973d53cce * morituri/common/checksum.py:
Add a task to calculate a trm fingerprint.
	* examples/trm.py (added):
	  Add an example.
	  Strangely enough it starts burstily, doing 10% directly, halting,
	  then progressing quickly,
2009-04-20 21:31:27 +00:00
Thomas Vander Stichele
1fc0c2bbdb * examples/ARcue.py:
Fix a bug in the gtk example.
2009-04-20 21:30:04 +00:00
Thomas Vander Stichele
58a855c630 * examples/readtoc.py:
Read the toc using cdrdao.  Now sets progress based on which
	  frame it is on.
2009-04-19 22:55:16 +00:00
Thomas Vander Stichele
a7e3779473 * examples/readtoc.py (added):
Add an example to read the TOC, not finished yet.
2009-04-19 17:26:33 +00:00
Thomas Vander Stichele
26bfe85631 * examples/gtkchecksum.py:
* morituri/common/checksum.py:
	  Final crc->checksum fixes.
2009-04-15 13:41:15 +00:00
Thomas Vander Stichele
587f1a45dd * examples/ARcue.py:
* morituri/common/checksum.py:
	* morituri/image/image.py:
	* morituri/image/toc.py:
	* examples/gtkchecksum.py (added):
	* examples/gtkcrc.py (deleted):
	  More crc->checksum changes.
2009-04-15 13:39:16 +00:00
Thomas Vander Stichele
b63ef021a7 * examples/ARcue.py:
* morituri/common/checksum.py:
	* morituri/image/image.py:
	* morituri/test/test_image_image.py:
	  Change crc to checksum everywhere.
2009-04-15 13:31:35 +00:00
Thomas Vander Stichele
1abeac8dcf * examples/ARcue.py:
* morituri/image/image.py:
	* morituri/test/test_image_image.py:
	  Make everything use TOC for the id's.
2009-04-15 13:20:56 +00:00