3 # Rec10 TS Recording Tools
4 # Copyright (C) 2009-2010 Yukikaze
8 def checkB25Decode(b25filepath, decodedfilepath):
10 if os.path.isfile(decodedfilepath):##tsファイルが存在している
11 dtime = time.time()-os.path.getmtime(decodedfilepath)
14 if (compareFilesize(b25filepath, decodedfilepath, 10) and minimizeCheck(decodedfilepath, 800)):
18 dtime = time.time()-os.path.getmtime(decodedfilepath)
21 if (compareFilesize(b25filepath, decodedfilepath, 10) and minimizeCheck(decodedfilepath, 800)):
23 #recdblist.printutf8("deleting b25 is " + str(ret))
25 def compareFilesize(pathbase, path, percentage):
27 return true if size of path is larger than that of pathbase.
28 percentage is int(0< <100)
30 basesize = os.path.getsize(pathbase)
31 pathsize = os.path.getsize(path)
32 size = pathsize * 100-basesize * percentage
37 def minimizeCheck(filepath, minsize):
41 if os.path.getsize(filepath) > minsize * 1000 * 1000: