From c261be455c78d7a5d8ba67fdda2fdc1ae92f83a2 Mon Sep 17 00:00:00 2001 From: Thomas Vander Stichele Date: Thu, 6 Dec 2012 16:50:51 +0000 Subject: [PATCH] * morituri/rip/image.py: Use getRealPath when retagging an image, fixes bug where it doesn't find the files relative to the cuepath. --- ChangeLog | 6 ++++++ morituri/rip/image.py | 8 +++++--- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index 67efb22..bb57c78 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2012-12-06 Thomas Vander Stichele + + * 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 * morituri/common/program.py: diff --git a/morituri/rip/image.py b/morituri/rip/image.py index 20d4507..681ed6b 100644 --- a/morituri/rip/image.py +++ b/morituri/rip/image.py @@ -124,10 +124,12 @@ class Retag(logcommand.LogCommand): prog.cuePath = arg prog.result = result.RipResult() for track in cueImage.table.tracks: - path = track.indexes[1].path + path = cueImage.getRealPath(track.indexes[1].path) + taglist = prog.getTagList(track.number) - self.debug('possibly retagging %r with taglist %r', - path, taglist) + self.debug( + 'possibly retagging %r from cue path %r with taglist %r', + path, arg, taglist) t = encode.SafeRetagTask(path, taglist) runner.run(t) path = os.path.basename(path)