* morituri/image/image.py:
Remove dead code.
This commit is contained in:
@@ -1,3 +1,8 @@
|
||||
2010-04-14 Thomas Vander Stichele <thomas at apestaart dot org>
|
||||
|
||||
* morituri/image/image.py:
|
||||
Remove dead code.
|
||||
|
||||
2010-04-14 Thomas Vander Stichele <thomas at apestaart dot org>
|
||||
|
||||
* morituri/common/encode.py:
|
||||
|
||||
@@ -294,31 +294,3 @@ class ImageEncodeTask(task.MultiSeparateTask):
|
||||
self.debug('encoding track %d', trackIndex + 1)
|
||||
index = track.indexes[1]
|
||||
add(index)
|
||||
|
||||
class ImageRetagTask(task.MultiSeparateTask):
|
||||
"""
|
||||
I retag files in a disk image.
|
||||
"""
|
||||
|
||||
description = "Retagging tracks"
|
||||
|
||||
def __init__(self, image, taglists):
|
||||
task.MultiSeparateTask.__init__(self)
|
||||
|
||||
# here to avoid import gst eating our options
|
||||
from morituri.common import encode
|
||||
|
||||
self._image = image
|
||||
self._taglists = taglists
|
||||
cue = image.cue
|
||||
self._tasks = []
|
||||
self.lengths = {}
|
||||
|
||||
for trackIndex, track in enumerate(cue.table.tracks):
|
||||
self.debug('retagging track %d', trackIndex + 1)
|
||||
index = track.indexes[1]
|
||||
path = image.getRealPath(index.path)
|
||||
assert type(path) is unicode, "%r is not unicode" % path
|
||||
self.debug('schedule retag of %r', path)
|
||||
root, ext = os.path.splitext(os.path.basename(path))
|
||||
taskk = encode.RetagTask(path, taglists[trackIndex])
|
||||
|
||||
Reference in New Issue
Block a user