Commit aa9b140b authored by martin hou's avatar martin hou

fix: adding version 8/9 adaption

parent 4418543a
...@@ -996,6 +996,14 @@ Jensen.prototype.listFiles = async function () { ...@@ -996,6 +996,14 @@ Jensen.prototype.listFiles = async function () {
{ {
duration = flen / 10; duration = flen / 10;
} }
else if (ver == 8)
{
duration = (flen - 44) / 16 / 2;
}
else if (ver == 9)
{
duration = (flen - 44) / 16 / 2 / 2;
}
// "2025Sep24-180808-Call01.hda" // "2025Sep24-180808-Call01.hda"
mode = fname.join('').replace(/^(\w{9})-(\d{6})-(.+?)\d+\.\w+$/gi, '$3').toUpperCase(); mode = fname.join('').replace(/^(\w{9})-(\d{6})-(.+?)\d+\.\w+$/gi, '$3').toUpperCase();
// console.log('mode:', fname.join(''), mode); // console.log('mode:', fname.join(''), mode);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment