From 503cc1ea915f65b70ae96067357b598139cf9b2f Mon Sep 17 00:00:00 2001 From: Taeyeon Mori Date: Mon, 13 Nov 2017 18:51:50 +0900 Subject: [PATCH] xconv: ... --- lib/python/xconv/profiles/audiobook.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/python/xconv/profiles/audiobook.py b/lib/python/xconv/profiles/audiobook.py index 337756a..e5c0736 100644 --- a/lib/python/xconv/profiles/audiobook.py +++ b/lib/python/xconv/profiles/audiobook.py @@ -141,7 +141,7 @@ def explode(task, stream, defines): interval = float(defines.get("interval", 30)) * 60 min_intv = float(defines.get("minimum", 5)) * 60 - last_duration = stream_duration % interval + last_duration = stream.duration % interval npieces = (stream.duration // interval) + (1 if last_duration > min_intv else 0) ext = "ogg" if "ogg" in defines else "opus"