From a0a620919affa7c8ebf82df8474aa4720c342edd Mon Sep 17 00:00:00 2001 From: gn64_jp Date: Sat, 14 Jan 2012 15:11:54 +0000 Subject: [PATCH] fix LANG. git-svn-id: svn+ssh://svn.sourceforge.jp/svnroot/rec10@898 4e526526-5e11-4fc0-8910-f8fd03428081 --- rec10/trunk/src/recording_earth_pt1.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/rec10/trunk/src/recording_earth_pt1.py b/rec10/trunk/src/recording_earth_pt1.py index 9806930..caf28e7 100644 --- a/rec10/trunk/src/recording_earth_pt1.py +++ b/rec10/trunk/src/recording_earth_pt1.py @@ -72,14 +72,13 @@ def getActiveAdapter(channel): return str(i) def record(channel,tsid,out,timelength,decode=1): if not os.path.exists(tmppath+u"rec.sh"): - ft=open(tmppath+u"rec.sh") + ft=open(tmppath+u"rec.sh","w") ft.write(u"#!/bin/bash\n/bin/cat $1 > $2") ft.close() os.system(u"chmod +x "+tmppath+u"rec.sh") adapt=getActiveAdapter(channel) my_env=recdblist.getEnv() if adapt!=None: - f=open(out,"w") tunecmd=configreader.getConfDVB("DVBtune")+u" "+adapt+u" "+channel2freq(channel)+u" "+tsid reccmd=u"/bin/cat \""+configreader.getConfDVB("DVBadapter")+adapt+u"/dvr0\" > \""+out+u"\"" if decode==1: @@ -97,7 +96,6 @@ def record(channel,tsid,out,timelength,decode=1): p2.wait() os.kill(p1.pid,signal.SIGKILL) p1.wait() - f.close() else: recdblist.printutf8ex(u"tuner busy",100,100) def useDVB(): -- 2.11.0