conv2mp4-server.py 文件源码

python
阅读 38 收藏 0 点赞 0 评论 0

项目:conv2mp4-py 作者: Kameecoding 项目源码 文件源码
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
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号