mutagen filter: small fix
This commit is contained in:
parent
4145e53d8f
commit
b2b9de1271
1 changed files with 4 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue