* morituri/image/cue.py:

* morituri/image/image.py:
	* morituri/image/table.py:
	* morituri/image/toc.py:
	* morituri/program/cdrdao.py:
	* morituri/test/test_image_cue.py:
	* morituri/test/test_image_table.py:
	  Rename ITTrack to Track.
This commit is contained in:
Thomas Vander Stichele
2009-05-16 09:29:01 +00:00
parent df2182724d
commit 09fe46ee99
8 changed files with 26 additions and 15 deletions

View File

@@ -114,7 +114,7 @@ class CueFile(object, log.Loggable):
trackMode = m.group('mode')
self.debug('found track %d', trackNumber)
currentTrack = table.ITTrack(trackNumber)
currentTrack = table.Track(trackNumber)
self.table.tracks.append(currentTrack)
continue

View File

@@ -79,7 +79,7 @@ class Image(object, log.Loggable):
length = self.cue.getTrackLength(self.cue.table.tracks[i])
if length == -1:
length = verify.lengths[i + 1]
t = table.ITTrack(i + 1, audio=True)
t = table.Track(i + 1, audio=True)
tracks.append(t)
# FIXME: this probably only works for non-compliant .CUE files
# where pregap is put at end of previous file

View File

@@ -50,7 +50,7 @@ CDTEXT_FIELDS = [
]
class ITTrack:
class Track:
"""
I represent a track entry in an IndexTable.
@@ -117,12 +117,12 @@ class IndexTable(object, log.Loggable):
I represent a table of indexes on a CD.
@ivar tracks: tracks on this CD
@type tracks: list of L{ITTrack}
@type tracks: list of L{Track}
@ivar catalog: catalog number
@type catalog: str
"""
tracks = None # list of ITTrack
tracks = None # list of Track
leadout = None # offset where the leadout starts
catalog = None # catalog number; FIXME: is this UPC ?
cdtext = None

View File

@@ -142,7 +142,7 @@ class TocFile(object, log.Loggable):
pregapLength = 0
# FIXME: track mode
currentTrack = table.ITTrack(trackNumber)
currentTrack = table.Track(trackNumber)
self.table.tracks.append(currentTrack)
continue