OSDN Git Service

fix miss
[rec10/rec10-git.git] / rec10 / trunk / src / classify.py
index 13fa6b4..d7fe312 100644 (file)
@@ -428,12 +428,12 @@ if __name__ == "__main__":
         except:
             ""
         if tsmovepath!="":
-            sa=auto_move.search_file(recpath, recordedpath,".ts")
+            sa=auto_move.search_file(recpath, tsmovepath,".ts")
             for t in sa:
-                sf=auto_move.searchFolder(t,recordedpath,700)
+                sf=auto_move.searchFolder(t,tsmovepath,700)
                 if sf!="":
                     recdblist.printutf8(t+u" : "+os.path.join(sf, auto_move.get_move_dest_path(t, recpath,sf,".ts")+".ts"))
-            sa=auto_move.search_file(recpath, recordedpath,".ts")
+            sa=auto_move.search_file(recpath, tsmovepath,".ts")
         else:
             recdblist.printutf8(u"ts_movepathが設定されていません。/etc/rec10.confを設定してください。")
     elif opts.tsmove:
@@ -443,14 +443,14 @@ if __name__ == "__main__":
         except:
             ""
         if tsmovepath!="":
-            sa=auto_move.search_file(recpath, recordedpath,".ts")
+            sa=auto_move.search_file(recpath, tsmovepath,".ts")
             for t in sa:
-                sf=auto_move.searchFolder(t,recordedpath,700)
+                sf=auto_move.searchFolder(t,tsmovepath,700)
                 if sf!="":
                     recdblist.printutf8(u"移動先")
                     recdblist.printutf8(t+" : "+os.path.join(sf, auto_move.get_move_dest_path(t, recpath,sf,".ts")+".ts"))
                     recdblist.printutf8(u"実行中")
-                    auto_move.execMove(t, recpath, recordedpath,".ts",0)
-            sa=auto_move.search_file(recpath, recordedpath,".ts")
+                    auto_move.execMove(t, recpath, tsmovepath,".ts",0)
+            sa=auto_move.search_file(recpath, tsmovepath,".ts")
         else:
             recdblist.printutf8(u"ts_movepathが設定されていません。/etc/rec10.confを設定してください。")
\ No newline at end of file