summaryrefslogtreecommitdiffstats
path: root/rip.py
diff options
context:
space:
mode:
Diffstat (limited to 'rip.py')
-rwxr-xr-xrip.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/rip.py b/rip.py
index f172c07..514356a 100755
--- a/rip.py
+++ b/rip.py
@@ -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