From b2b9de127150a1271728c2961f5e702850911bdb Mon Sep 17 00:00:00 2001 From: boyska Date: Thu, 12 Nov 2020 00:24:45 +0100 Subject: [PATCH] mutagen filter: small fix --- larigira/filters/basic.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/larigira/filters/basic.py b/larigira/filters/basic.py index 5667d49..135df3c 100644 --- a/larigira/filters/basic.py +++ b/larigira/filters/basic.py @@ -66,7 +66,10 @@ def percentwait(songs, context, conf, getdur=get_duration): if eventduration == 0: # must be an error! mutagen support is not always perfect - return True, 'mutagen could not calculate length of %s' % uri + return ( + True, + ("mutagen could not calculate length of %s" % ",".songs["uris"]), + ) wait = eventduration * (percentwait / 100.0) if remaining > wait: return False, "remaining %d max allowed %d" % (remaining, wait)