agermanidis / videodigest

Automatic video summaries
MIT License
263 stars 29 forks source link

unable to run #4

Closed helloworldkr closed 4 years ago

helloworldkr commented 5 years ago

Getting the following error

File "/usr/local/bin/videodigest", line 57 return sum(map(lambda (start, end): end-start, regions)) ^ SyntaxError: invalid syntax

srichakradhar commented 4 years ago

That is because the ability to unpack tuple parameters was removed in Python 3. stackoverflow change it to return sum(map(lambda region: region[1]-region[0], regions)).