OSDN Git Service

fix rename miss.
[rec10/rec10-git.git] / rec10 / trunk / src / tv2audio.py
index fc5335c..fd8e124 100644 (file)
@@ -43,7 +43,7 @@ def wav2mp3_lame(pin,pout):
     recdblist.addLog(pin, txt, u"Wav2aac_Lameログ-詳細")\r
 def ts2single_audio(pts,opts):\r
     paac=pts.replace(".ts",".aac")\r
-    ffmpeg=configreader.getPathSetting("ffmpeg")\r
+    ffmpeg=configreader.getConfPath("ffmpeg")\r
     e0=ffmpeg+" -i \""+pts+"\" -y -vn -f aac -acodec copy \""+paac+"\""\r
     p0=subprocess.Popen(e0,shell=True)\r
     os.waitpid(p0.pid, 0)\r
@@ -114,7 +114,7 @@ def ts2single_audio(pts,opts):
             if not os.path.exists(pts.replace(".ts",".mp3")):\r
                 ts2single_fp_BonTsDemux(pts,opts)\r
 def ts2singlewav(pts,opts):\r
-    bontsdemux = configreader.getPathSetting('bontsdemux')\r
+    bontsdemux = configreader.getConfPath('bontsdemux')\r
     bonpin = "Z:\\" + pts[1:]\r
     outf = os.path.splitext(pts)[0]\r
     bonpout = "Z:\\" + outf[1:]\r
@@ -128,7 +128,7 @@ def ts2singlewav(pts,opts):
     recdblist.addCommandLog(ots, u"BonTsDemux 音声取り出し", exe, logt)\r
 def ts2single_mp3_ffmpeg(pts):\r
     pmp3=pts.replace(".ts",".mp3")\r
-    ffmpeg=configreader.getPathSetting("ffmpeg")\r
+    ffmpeg=configreader.getConfPath("ffmpeg")\r
     e0=ffmpeg+" -i \""+pts+"\" -y -vn -ab 128k \""+pmp3+"\""\r
     p0=subprocess.Popen(e0,shell=True)\r
     os.waitpid(p0.pid, 0)\r
@@ -141,7 +141,7 @@ def ts2single_mp3_ffmpeg(pts):
 def ts2single_fp_BonTsDemux(pts,opts):\r
     useNero=0\r
     try:\r
-        if configreader.getPathSetting("useNeroAAC")=="1" and os.path.exists(configreader.getPathSetting("NeroAAC")):\r
+        if configreader.getConfPath("useNeroAAC")=="1" and os.path.exists(configreader.getConfPath("NeroAAC")):\r
             useNero=1\r
     except:\r
         useNero=0\r
@@ -163,8 +163,8 @@ def ts2dualaudio_BonTsDemux(pin, delay,opts):
     """\r
     delay is string\r
     """\r
-    bontsdemux = configreader.getPathSetting('bontsdemux')\r
-    wine = configreader.getPathSetting('wine')\r
+    bontsdemux = configreader.getConfPath('bontsdemux')\r
+    wine = configreader.getConfPath('wine')\r
     bonpin = "Z:\\" + pin[1:]\r
     outf = os.path.splitext(pin)[0]\r
     bonpout = "Z:\\" + outf[1:]\r
@@ -196,7 +196,7 @@ def ts2dualaudio_BonTsDemux(pin, delay,opts):
     ffpout22=ffpout2.replace(".wav",".mp3")\r
     useNero=0\r
     try:\r
-        if configreader.getPathSetting("useNeroAAC")=="1" and os.path.exists(configreader.getPathSetting("NeroAAC")):\r
+        if configreader.getConfPath("useNeroAAC")=="1" and os.path.exists(configreader.getConfPath("NeroAAC")):\r
             useNero=1\r
     except:\r
         useNero=0\r
@@ -212,8 +212,8 @@ def ts2dualaudio_BonTsDemux(pin, delay,opts):
     os.remove(ffpout1)\r
     os.remove(ffpout2)\r
 def ts2pentaaudio_BonTsDemux(pin, delay,opts):\r
-    bontsdemux = configreader.getPathSetting('bontsdemux')\r
-    wine = configreader.getPathSetting('wine')\r
+    bontsdemux = configreader.getConfPath('bontsdemux')\r
+    wine = configreader.getConfPath('wine')\r
     bonpin = "Z:\\" + pin[1:]\r
     outf = os.path.splitext(pin)[0]\r
     bonpout = "Z:\\" + outf[1:]\r
@@ -240,7 +240,7 @@ def ts2pentaaudio_BonTsDemux(pin, delay,opts):
     ffpout21=ffpout1.replace(".wav",".mp3")\r
     useNero=0\r
     try:\r
-        if configreader.getPathSetting("useNeroAAC")=="1" and os.path.exists(configreader.getPathSetting("NeroAAC")):\r
+        if configreader.getConfPath("useNeroAAC")=="1" and os.path.exists(configreader.getConfPath("NeroAAC")):\r
             useNero=1\r
     except:\r
         useNero=0\r