* morituri/rip/image.py:

Use getRealPath when retagging an image, fixes bug where it
	  doesn't find the files relative to the cuepath.
This commit is contained in:
Thomas Vander Stichele
2012-12-06 16:50:51 +00:00
parent 0c9d3c552b
commit c261be455c
2 changed files with 11 additions and 3 deletions

View File

@@ -1,3 +1,9 @@
2012-12-06 Thomas Vander Stichele <thomas at apestaart dot org>
* morituri/rip/image.py:
Use getRealPath when retagging an image, fixes bug where it
doesn't find the files relative to the cuepath.
2012-12-06 Thomas Vander Stichele <thomas at apestaart dot org> 2012-12-06 Thomas Vander Stichele <thomas at apestaart dot org>
* morituri/common/program.py: * morituri/common/program.py:

View File

@@ -124,10 +124,12 @@ class Retag(logcommand.LogCommand):
prog.cuePath = arg prog.cuePath = arg
prog.result = result.RipResult() prog.result = result.RipResult()
for track in cueImage.table.tracks: for track in cueImage.table.tracks:
path = track.indexes[1].path path = cueImage.getRealPath(track.indexes[1].path)
taglist = prog.getTagList(track.number) taglist = prog.getTagList(track.number)
self.debug('possibly retagging %r with taglist %r', self.debug(
path, taglist) 'possibly retagging %r from cue path %r with taglist %r',
path, arg, taglist)
t = encode.SafeRetagTask(path, taglist) t = encode.SafeRetagTask(path, taglist)
runner.run(t) runner.run(t)
path = os.path.basename(path) path = os.path.basename(path)