def good_output(oldFile,new_file):
oldSize = get_length(oldFile)
newSize = get_length(new_file)
for i in range(0,2):
if i == 2:
if abs(oldSize[i]- newSize[i]) > 5:
Logger.info("ERROR: File Duration difference bigger than 5 seconds, convert failed")
return False
else:
if oldSize[i] != newSize [i]:
Logger.info("ERROR: File Duration difference bigger than 5 seconds, convert failed")
return False
Logger.info("SUCCESS: File Duration difference less than 5 seconds, convert successful")
return True
#Recursively build a map of folder paths to GDRIVE ids
评论列表
文章目录