* examples/readdisc.py:

Move constants to common
This commit is contained in:
Thomas Vander Stichele
2009-05-16 10:27:10 +00:00
parent fd10c5f75c
commit b835f94ef1
2 changed files with 7 additions and 2 deletions

View File

@@ -1,3 +1,8 @@
2009-05-16 Thomas Vander Stichele <thomas at apestaart dot org>
* examples/readdisc.py:
Move constants to common
2009-05-16 Thomas Vander Stichele <thomas at apestaart dot org>
* examples/readdisc.py:

View File

@@ -316,14 +316,14 @@ def main(argv):
handle.write('#EXTM3U\n')
if htoapath:
handle.write('#EXTINF:%d,%s\n' % (
htoalength / checksum.FRAMES_PER_SECOND,
htoalength / common.FRAMES_PER_SECOND,
os.path.basename(htoapath[:-4])))
handle.write('%s\n' % os.path.basename(htoapath))
for i, track in enumerate(itable.tracks):
path = getPath(options.track_template, metadata, i) + '.wav'
handle.write('#EXTINF:%d,%s\n' % (
itable.getTrackLength(i + 1) / checksum.FRAMES_PER_SECOND,
itable.getTrackLength(i + 1) / common.FRAMES_PER_SECOND,
os.path.basename(path)))
handle.write('%s\n' % os.path.basename(path))
handle.close()