diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2009-07-07 15:38:18 -0400 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2009-07-07 15:38:18 -0400 |
commit | cb3c798436390fce930c7f006b922cd2385eb5da (patch) | |
tree | 8137ebb5051a1052a8866fe3a87f44e96487a591 | |
parent | Fixed hardcoded paths. (diff) | |
download | OldSchoolRipper-cb3c798436390fce930c7f006b922cd2385eb5da.tar.xz OldSchoolRipper-cb3c798436390fce930c7f006b922cd2385eb5da.zip |
Path sanatizing.
-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 |