code: function toSeconds (time) {
    const t = time.split(':')
  
    try {
      let s = t[2].split(',')
  
      // Just in case a . is decimal seperator
      if (s.length === 1) {
        s = t[2].split('.')
      }
  
      return parseFloat(t[0], 10) * 3600 + parseFloat(t[1], 10) * 60 + parseFloat(s[0], 10) + parseFloat(s[1], 10) / 1000
    } catch (e) {
      return 0
    }
  }
docs: @typedef {JSONSubtitle}
  @property {Number} id - The subtitle ID number.
  @property {Number} start - The start timestamp in seconds.
  @property {Number} end - The end timestamp in seconds.
  @property {String} text - The subtitle HTML.
   
  Convert a HH:MM:SS,MMM or HH:MM:SS.MMM time format into seconds.
  
  @private
  @param {String} time - The time to be converted.
  @return {Number} - The time converted to seconds.