From: stevenaw Date: Tue, 25 Jan 2011 18:15:05 +0000 (-0500) Subject: Default time to 0. Style specs are not supported X-Git-Tag: v0.3~15^2~4^2~2 X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=fa18ca60b7c7335ed858872ac744daf85185775c;p=popcorn-js.git Default time to 0. Style specs are not supported --- diff --git a/parsers/parserTTXT/popcorn.parseTTXT.js b/parsers/parserTTXT/popcorn.parseTTXT.js index db92780..7c946bd 100644 --- a/parsers/parserTTXT/popcorn.parseTTXT.js +++ b/parsers/parserTTXT/popcorn.parseTTXT.js @@ -27,7 +27,7 @@ time += parseFloat(t[1], 10)*60; // minutes => seconds time += parseFloat(s[0], 10); time += parseFloat(s[1], 10)/1000; - } catch (e) { throw "Invalid time"; } + } catch (e) { time = 0; } return time; };