2016-10-28, 19:04
(2016-10-28, 18:55)bigspud Wrote: where is line 101?
just paste full default.py text please
Can't do so, right now, as I am not near the pi. Just look for the code, as letac posted. It should look like this:
def duration_to_seconds(duration_string):
d = duration_string.split(':')
seconds = (((int(d[0]) * 60) + int(d[1])) * 60) + int(d[2])
return seconds
Put a new line after the firs line of the code, with:
if len(duration_string) == 5: duration_string = '00:' + duration_string
Those four spaces are necessary, apparently. And then you are good to go. The code should look like letac states, above. Cheers.