From 5d085ec3817bef3848fc8e0741e548d095173b3d Mon Sep 17 00:00:00 2001 From: Antoine Van-Elstraete Date: Thu, 15 Apr 2021 15:14:39 +0200 Subject: [PATCH] nettoyage de code (F841) --- vid_convert.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/vid_convert.py b/vid_convert.py index 6e2e248..54587f5 100755 --- a/vid_convert.py +++ b/vid_convert.py @@ -61,10 +61,6 @@ def interlaced(file, infos): TFF = int(line.split('TFF:')[1].split()[0]) BFF = int(line.split('BFF:')[1].split()[0]) Progressive = int(line.split('Progressive:')[1].split()[0]) - if "frame= " in line: - total_frame = int(line.split()[1]) - elif "frame=" in line: - total_frame = int(line.split()[0].split("=")[1]) try: pct = ((TFF + BFF) / (TFF + BFF + Progressive)) * 100 pct = round(pct)