xconv: Why does integer division return a float >.<

master
Taeyeon Mori 7 years ago
parent 503cc1ea91
commit c397f9a418
  1. 2
      lib/python/xconv/profiles/audiobook.py

@ -142,7 +142,7 @@ def explode(task, stream, defines):
min_intv = float(defines.get("minimum", 5)) * 60
last_duration = stream.duration % interval
npieces = (stream.duration // interval) + (1 if last_duration > min_intv else 0)
npieces = int(stream.duration // interval) + (1 if last_duration > min_intv else 0)
ext = "ogg" if "ogg" in defines else "opus"

Loading…
Cancel
Save