[sunporno] Fix duration extraction and make more robust