(opts,args)=parser.parse_args(sys.argv)
if opts.ltitle!="":
ltitle=unicode(opts.ltitle,'utf-8')
- sf=searchFolder(ltitle, recordedpath)
+ sf=auto_move.searchFolder(ltitle, recordedpath)
print "###MKV###"
recdblist.printutf8(os.path.join(sf, auto_move.get_move_dest_path(ltitle,recpath,sf,".mkv")+".mkv"))
print "###MP4###"
sa=auto_move.search_file(recpath, recordedpath, ".mkv")
for t in sa:
recdblist.printutf8(u"自動推測実行中-MKV")
- sf=searchFolder(t,recordedpath)
+ sf=auto_move.searchFolder(t,recordedpath)
if sf!="":
recdblist.printutf8(u"移動先")
recdblist.printutf8(t+" : "+os.path.join(sf, auto_move.get_move_dest_path(t, recpath,sf,".mkv")+".mkv"))
sa=auto_move.search_file(recpath, recordedpath, ".mp4")
for t in sa:
recdblist.printutf8(u"自動推測実行中-MP4")
- sf=searchFolder(t,recordedpath)
+ sf=auto_move.searchFolder(t,recordedpath)
if sf!="":
recdblist.printutf8(u"移動先")
recdblist.printutf8(t+" : "+os.path.join(sf, auto_move.get_move_dest_path(t, recpath,sf,".mp4")+".mp4"))
elif opts.list:
sa=auto_move.search_file(recpath, recordedpath,".mkv")
for t in sa:
- sf=searchFolder(t,recordedpath)
+ sf=auto_move.searchFolder(t,recordedpath)
if sf!="":
recdblist.printutf8(t+u" : "+os.path.join(sf, auto_move.get_move_dest_path(t, recpath,sf,".mkv")+".mkv"))
sa=auto_move.search_file(recpath, recordedpath,".mp4")
for t in sa:
- sf=searchFolder(t,recordedpath)
+ sf=auto_move.searchFolder(t,recordedpath)
if sf!="":
recdblist.printutf8(t+u" : "+os.path.join(sf, auto_move.get_move_dest_path(t, recpath,sf,".mp4")+".mp4"))
elif opts.etitle!="":
if tsmovepath!="":
sa=auto_move.search_file(recpath, recordedpath,".ts")
for t in sa:
- sf=searchFolder(t,recordedpath,700)
+ sf=auto_move.searchFolder(t,recordedpath,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")
if tsmovepath!="":
sa=auto_move.search_file(recpath, recordedpath,".ts")
for t in sa:
- sf=searchFolder(t,recordedpath,700)
+ sf=auto_move.searchFolder(t,recordedpath,700)
if sf!="":
recdblist.printutf8(u"移動先")
recdblist.printutf8(t+" : "+os.path.join(sf, auto_move.get_move_dest_path(t, recpath,sf,".ts")+".ts"))