From: gn64_jp Date: Sun, 14 Mar 2010 06:23:59 +0000 (+0000) Subject: fix remove error. X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=43c276a8a8e46246ca1c638e2b929d4cbe0afb7c;p=rec10%2Frec10-git.git fix remove error. git-svn-id: svn+ssh://svn.sourceforge.jp/svnroot/rec10@479 4e526526-5e11-4fc0-8910-f8fd03428081 --- diff --git a/rec10/trunk/src/tv2mkv.py b/rec10/trunk/src/tv2mkv.py index 05db3e2..fa84689 100644 --- a/rec10/trunk/src/tv2mkv.py +++ b/rec10/trunk/src/tv2mkv.py @@ -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")): diff --git a/rec10/trunk/src/tv2mp4.py b/rec10/trunk/src/tv2mp4.py index 5df7ec2..4692e4f 100644 --- a/rec10/trunk/src/tv2mp4.py +++ b/rec10/trunk/src/tv2mp4.py @@ -228,7 +228,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")):