From 3a73e199d79314a50bc8256d3bfd892e01ededcc Mon Sep 17 00:00:00 2001 From: gn64_jp Date: Sat, 7 Aug 2010 07:23:43 +0000 Subject: [PATCH] implement auto delete. git-svn-id: svn+ssh://svn.sourceforge.jp/svnroot/rec10@666 4e526526-5e11-4fc0-8910-f8fd03428081 --- rec10/trunk/src/auto_move.py | 6 +++--- rec10/trunk/src/classify.py | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/rec10/trunk/src/auto_move.py b/rec10/trunk/src/auto_move.py index 277992a..2dbd507 100644 --- a/rec10/trunk/src/auto_move.py +++ b/rec10/trunk/src/auto_move.py @@ -141,6 +141,6 @@ def execDelete(title,temppath): if os.path.exists(path): recdblist.printutf8(dp) os.remove(dp) - "" - except: - "" \ No newline at end of file + except Exception, inst: + print type(inst) + print str(inst) \ No newline at end of file diff --git a/rec10/trunk/src/classify.py b/rec10/trunk/src/classify.py index beabc4c..bcf1297 100644 --- a/rec10/trunk/src/classify.py +++ b/rec10/trunk/src/classify.py @@ -62,7 +62,7 @@ if __name__ == "__main__": auto_move.execMove(t, recpath, recordedpath,".mp4",1) else: recdblist.printutf8(t+" can't find matching folder") - elif opts.delete: + elif opts.delete:##-Dの場合 sa=auto_move.search_file(recpath, recordedpath,".mkv") for t in sa: auto_move.execDelete(t, recpath) -- 2.11.0