OSDN Git Service

implement caption/audio 0 byte error auto skip system.
authorgn64_jp <gn64_jp@4e526526-5e11-4fc0-8910-f8fd03428081>
Sun, 2 May 2010 09:00:11 +0000 (09:00 +0000)
committergn64_jp <gn64_jp@4e526526-5e11-4fc0-8910-f8fd03428081>
Sun, 2 May 2010 09:00:11 +0000 (09:00 +0000)
git-svn-id: svn+ssh://svn.sourceforge.jp/svnroot/rec10@583 4e526526-5e11-4fc0-8910-f8fd03428081

rec10/trunk/src/tv2mp4.py

index 22d57f9..f96651a 100644 (file)
@@ -138,7 +138,7 @@ def addAudio(pts,pmp4,opt):#オプションに応じた音声の追加を行う
     else:\r
         tv2audio.ts2single_audio(pts)\r
         pinaac=pts.replace(".ts",".aac")\r
-        if os.path.exists(pinaac):\r
+        if not os.path.exists(pinaac):\r
             pinaac=pinaac.replace(".aac",".mp3")\r
         e1a=exe +u" -add \""+pinaac+"\" \""+pmp4+"\""\r
         addmp4(pinaac, pmp4, e1a)\r