]> khamidou — GitHub mirrors - popcorn-js.git/commitdiff
Default time to 0. Style specs are not supported
authorstevenaw <sweerdenburg@gmail.com>
Tue, 25 Jan 2011 18:15:05 +0000 (13:15 -0500)
committerstevenaw <sweerdenburg@gmail.com>
Tue, 25 Jan 2011 18:15:05 +0000 (13:15 -0500)
parsers/parserTTXT/popcorn.parseTTXT.js

index db927804d2414e18c073195161a411754b98e49c..7c946bd162d12ef10c2acebcf949511271750e20 100644 (file)
@@ -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;
     };