OSDN Git Service

fix remove error.
authorgn64_jp <gn64_jp@4e526526-5e11-4fc0-8910-f8fd03428081>
Sun, 14 Mar 2010 06:23:59 +0000 (06:23 +0000)
committergn64_jp <gn64_jp@4e526526-5e11-4fc0-8910-f8fd03428081>
Sun, 14 Mar 2010 06:23:59 +0000 (06:23 +0000)
git-svn-id: svn+ssh://svn.sourceforge.jp/svnroot/rec10@479 4e526526-5e11-4fc0-8910-f8fd03428081

rec10/trunk/src/tv2mkv.py
rec10/trunk/src/tv2mp4.py

index 05db3e2..fa84689 100644 (file)
@@ -133,7 +133,7 @@ def deltitle(path,title):
     dp.append(os.path.join(path,title+"_1.mp3"))
     dp.append(os.path.join(path,title+"_2.mp3"))
     dp.append(os.path.join(path,title+".srt"))
-    if configreader.getenv("remove_ts")==1:
+    if configreader.getenv("remove_ts")=="1":
         dp.append(os.path.join(path,title+".ts"))
     if os.path.exists(os.path.join(path,title+".ts"))and os.path.exists(os.path.join(path,title+".ts.b25")):
         if os.path.getsize(os.path.join(path,title+".ts"))*10>os.path.getsize(os.path.join(path,title+".ts.b25")):
index 5df7ec2..4692e4f 100644 (file)
@@ -228,7 +228,7 @@ def deltitle(path,title):
     dp.append(os.path.join(path,title+"_1.mp3"))\r
     dp.append(os.path.join(path,title+"_2.mp3"))\r
     dp.append(os.path.join(path,title+".srt"))\r
-    if configreader.getenv("remove_ts")==1:\r
+    if configreader.getenv("remove_ts")=="1":\r
         dp.append(os.path.join(path,title+".ts"))\r
     if os.path.exists(os.path.join(path,title+".ts"))and os.path.exists(os.path.join(path,title+".ts.b25")):\r
         if os.path.getsize(os.path.join(path,title+".ts"))*10>os.path.getsize(os.path.join(path,title+".ts.b25")):\r