try:
folderpath.append(os.path.join(fullpath, ft2))
except Exception, inst:
- #print type(inst)
- #print inst
""
else:
lfpath.append(fullpath)
ngram.sort()
ngram.reverse()
if len(ngram)>0:
- #recdblist.printutf8(title + ngram[0][1] + " : "+str(ngram[0][0]))
if ngram[0][0]>threshold:
return ngram[0][1]
else:
return ""
def execMove(title,temppath,recpath,ext,autodel):
srcpath=os.path.join(temppath,title+ext)
- #desttitle=destName(title, temppath, recpath)
-
sf=searchFolder(title, recpath)
if sf!="":
- destpath=os.path.join(sf,destNameMKV(title, temppath, sf)+ext)
+ destpath=os.path.join(sf,get_move_dest_path(title, temppath, sf, ext)+ext)
recdblist.printutf8("moving now..")
recdblist.printutf8(srcpath+" : "+destpath)
print srcpath