Commit Graph

17 Commits

Author SHA1 Message Date
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
483c7b8a0c * morituri/program/cdrdao.py:
read all sessions by reading session 9.
	* morituri/image/toc.py:
	  Parse ZERO statements properly.
	  Also set absolute offsets when we know them from the .toc file.
	  Properly set audio flag on tracks.
	  FIXME: probably doesn't work if the .toc does not have lengths.
	* morituri/image/table.py:
	  Add some debug to cddb disc id calculation.
	  Fix absolutize function, it was going one index too far.
	  raise ValueError when overriding .absolute with a wrong value.
	* examples/readdisc.py:
	  Show CDDB disc id at the start.
	  Assert when toc and table have different disc id's (to be fixed)
	* morituri/test/test_image_cue.py:
	  Update for having the table already with absolute values.
	* morituri/test/test_image_toc.py:
	  Add Ladyhawke CDDB test, it has a data track.
2009-05-16 19:09:27 +00:00
Thomas Vander Stichele
b835f94ef1 * examples/readdisc.py:
Move constants to common
2009-05-16 10:27:10 +00:00
Thomas Vander Stichele
96ac69a13d * examples/readdisc.py:
* examples/readhtoa.py:
	* examples/readtoc.py:
	  Rename IndexTable to Table.
2009-05-16 09:51:03 +00:00
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
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
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
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