OSDN Git Service

tunerec: include <unistd.h> for usleep
[rec10/rec10-git.git] / rec10 / classify.py
index 14183e1..b85df53 100644 (file)
@@ -85,13 +85,19 @@ if __name__ == "__main__":
                 recdblist.printutf8(u"×不明:"+t,verbose_level=100)
     elif opts.rec10:##-r の場合
         # mkv無視します
+        dbl=rec10d.rec10db.select_move_auto_classify()
+        if len(dbl)>0:
+            for dbt in dbl:
+                t= dbt[1]
+                auto_move.execMove(t, recpath, recordedpath,".mp4",1)
+        rec10d.rec10db.delete_refresh_auto_classify()
         sa=auto_move.searchFile(recpath, recordedpath, ".mp4")
         for t in sa:
             sf=guess.searchFolder(t,recordedpath,200)
             if sf!="":
                 frompath = os.path.join(recpath, t + ".mp4")
                 topath = os.path.join(sf, auto_move.getMoveDestpath(t, recpath,sf,".mp4")+".mp4")
-                rec10d.rec10db.add_auto_classify(frompath, topath)
+                rec10d.rec10db.add_auto_classify(t,frompath, topath) 
     elif opts.delete:##-Dの場合
         sa=auto_move.searchFile(recpath, recordedpath,".mkv")
         for t in sa: