|
@@ -64,6 +64,9 @@ def percentwait(songs, context, conf, getdur=get_duration):
|
|
|
continue
|
|
|
eventduration += songduration
|
|
|
|
|
|
+ if eventduration == 0:
|
|
|
+ # must be an error! mutagen support is not always perfect
|
|
|
+ return True, 'mutagen could not calculate length of %s' % uri
|
|
|
wait = eventduration * (percentwait / 100.0)
|
|
|
if remaining > wait:
|
|
|
return False, "remaining %d max allowed %d" % (remaining, wait)
|