hyperframes 0.4.34 → 0.4.36
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/cli.js
CHANGED
|
@@ -54,7 +54,7 @@ var VERSION;
|
|
|
54
54
|
var init_version = __esm({
|
|
55
55
|
"src/version.ts"() {
|
|
56
56
|
"use strict";
|
|
57
|
-
VERSION = true ? "0.4.
|
|
57
|
+
VERSION = true ? "0.4.36" : "0.0.0-dev";
|
|
58
58
|
}
|
|
59
59
|
});
|
|
60
60
|
|
|
@@ -32796,7 +32796,16 @@ async function resolveMediaDuration(src, mediaStart, baseDir, downloadDir, tagNa
|
|
|
32796
32796
|
if (!existsSync32(filePath)) {
|
|
32797
32797
|
return { duration: 0, resolvedPath: filePath };
|
|
32798
32798
|
}
|
|
32799
|
-
|
|
32799
|
+
let metadata;
|
|
32800
|
+
if (tagName19 === "video") {
|
|
32801
|
+
metadata = await extractMediaMetadata(filePath);
|
|
32802
|
+
} else {
|
|
32803
|
+
try {
|
|
32804
|
+
metadata = await extractAudioMetadata(filePath);
|
|
32805
|
+
} catch {
|
|
32806
|
+
return { duration: 0, resolvedPath: filePath };
|
|
32807
|
+
}
|
|
32808
|
+
}
|
|
32800
32809
|
const fileDuration = metadata.durationSeconds;
|
|
32801
32810
|
const effectiveDuration = fileDuration - mediaStart;
|
|
32802
32811
|
const duration = effectiveDuration > 0 ? effectiveDuration : fileDuration;
|