nettoyage de code (F841)

This commit is contained in:
Antoine Van Elstraete 2021-04-15 15:14:39 +02:00
parent 372de84443
commit 5d085ec381

View File

@ -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)