summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2009-07-07 15:38:18 -0400
committerJason A. Donenfeld <Jason@zx2c4.com>2009-07-07 15:38:18 -0400
commitcb3c798436390fce930c7f006b922cd2385eb5da (patch)
tree8137ebb5051a1052a8866fe3a87f44e96487a591
parentFixed hardcoded paths. (diff)
downloadOldSchoolRipper-cb3c798436390fce930c7f006b922cd2385eb5da.tar.xz
OldSchoolRipper-cb3c798436390fce930c7f006b922cd2385eb5da.zip
Path sanatizing.
-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