OSDN Git Service

implement new ts copy mode.
authorgn64_jp <gn64_jp@4e526526-5e11-4fc0-8910-f8fd03428081>
Wed, 24 Mar 2010 03:58:53 +0000 (03:58 +0000)
committergn64_jp <gn64_jp@4e526526-5e11-4fc0-8910-f8fd03428081>
Wed, 24 Mar 2010 03:58:53 +0000 (03:58 +0000)
git-svn-id: svn+ssh://svn.sourceforge.jp/svnroot/rec10@520 4e526526-5e11-4fc0-8910-f8fd03428081

rec10/trunk/src/auto_move.py

index 1bddf93..63cd020 100644 (file)
@@ -1,3 +1,4 @@
+import shutil
 #!/usr/bin/python
 # coding: UTF-8
 # Rec10 TS Recording Tools
@@ -91,6 +92,9 @@ def get_move_dest_path(title,temppath,recpath,ext):
 def get_delpath(temppath,title):
     delpath=[os.path.join(temppath,title+".ts")]
     delpath.append(os.path.join(temppath,title+".avi"))
+    delpath.append(os.path.join(temppath,title+".mp4"))
+    delpath.append(os.path.join(temppath,title+".m2v"))
+    delpath.append(os.path.join(temppath,title+".mkv"))
     delpath.append(os.path.join(temppath,title+".120.avi"))
     delpath.append(os.path.join(temppath,title+".timecode.txt"))
     delpath.append(os.path.join(temppath,title+".aac"))
@@ -174,7 +178,7 @@ def execMove(title,temppath,recpath,ext,autodel):
         recdblist.printutf8("moving now..")
         recdblist.printutf8(srcpath+" : "+destpath)
         print srcpath
-        shutil.move(srcpath, destpath)
+        shutil.copy(srcpath, destpath)
         #shutil.copy(srcpath, destpath)
         if autodel==1:
             delpath=get_delpath(temppath, title)