We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 9cef5ae + 24edc29 commit 4a039d6Copy full SHA for 4a039d6
1 file changed
src/parsers/BilibiliFormat.js
@@ -22,6 +22,8 @@ function BilibiliParser(xmlDoc){
22
for(var i=0;i<elems.length;i++){
23
if(elems[i].getAttribute('p') != null){
24
var opt = elems[i].getAttribute('p').split(',');
25
+ if(!elems[i].childNodes[0])
26
+ continue;
27
var text = elems[i].childNodes[0].nodeValue;
28
var obj = {};
29
obj.stime = Math.round(parseFloat(opt[0]*1000));
0 commit comments