diff options
Diffstat (limited to 'rip.py')
-rwxr-xr-x | rip.py | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -45,13 +45,13 @@ def rawVobs(stage, movie): return [] def gluedVob(stage, movie): - return os.path.join(stage, movie, Stages.VIDEOTS, (movie + MovieType.GLUEDVOB)) + return os.path.join(stage, os.path.splitext(movie)[0], Stages.VIDEOTS, (os.path.splitext(movie)[0] + MovieType.GLUEDVOB)) def mp4(stage, movie): - return os.path.join(stage, (movie + MovieType.MP4)) + return os.path.join(stage, (os.path.splitext(movie)[0] + MovieType.MP4)) def audioTrack(stage, movie): - return os.path.join(stage, movie, Stages.VIDEOTS, MovieType.AUDIOTRACK) + return os.path.join(stage, os.path.splitext(movie)[0], Stages.VIDEOTS, MovieType.AUDIOTRACK) def moviesInStage(stage): if os.path.exists(stage): @@ -71,7 +71,7 @@ def moveStages(origin, destination, movie): return False if os.path.exists(origin): os.rename(origin, destination) - print "Moving %s to %s" (origin, destination) + print "Moving %s to %s" % (origin, destination) return True return False |