Merge branch 'main' into test/add-converter-tests

This commit is contained in:
Emrik Östling
2026-10-22 23:37:06 +02:00
committed by GitHub
6 changed files with 24 additions and 21 deletions
+1 -1
View File
@@ -1 +1 @@
1.4.3
1.4.4
+1 -1
View File
@@ -1,4 +1,4 @@
FROM oven/bun:1.4.3-slim AS base
FROM oven/bun:1.4.4-slim AS base
WORKDIR /app
COPY package.json bun.lock /app/
RUN bun install --frozen-lockfile
+1 -1
View File
@@ -1,5 +1,5 @@
[tools]
bun = "1.4.3"
bun = "1.4.4"
[env]
JWT_SECRET = "aLongAndSecretStringUsedToSignTheJSONWebToken1234"
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "convertx-frontend",
"version": "0.19.0",
"version": "0.20.0",
"scripts": {
"dev": "bun run --watch src/index.tsx",
"hot": "bun run --hot src/index.tsx",
+1 -1
View File
@@ -721,7 +721,7 @@ export async function convert(
let extraArgs: string[] = [];
let message = "Done";
const audioFormatsWithCover = ["m4a", "mp3", "flac", "ogg"];
const audioFormatsWithCover = ["m4a", "m4b", "mp3", "flac", "ogg"];
const audioFormatsNoCover = ["wav", "aac"];
if (audioFormatsWithCover.includes(convertTo)) {
+19 -16
View File
@@ -89,23 +89,26 @@ test.each([
expect(calls[0]).toEqual(["-i", "in.mkv", "-c:v", codec, "out.video"]);
});
test.each(["m4a", "mp3", "flac", "ogg"])("keeps embedded cover art for %s output", async (ext) => {
await convert("in.wav", "wav", ext, `out.${ext}`, undefined, mockExecFile);
test.each(["m4a", "m4b", "mp3", "flac", "ogg"])(
"keeps embedded cover art for %s output",
async (ext) => {
await convert("in.mp3", "mp3", ext, `out.${ext}`, undefined, mockExecFile);
expect(calls[0]).toEqual([
"-i",
"in.wav",
"-map",
"0:a",
"-map",
"0:v:disp:attached_pic?",
"-c:v",
"copy",
"-disposition:v",
"attached_pic",
`out.${ext}`,
]);
});
expect(calls[0]).toEqual([
"-i",
"in.mp3",
"-map",
"0:a",
"-map",
"0:v:disp:attached_pic?",
"-c:v",
"copy",
"-disposition:v",
"attached_pic",
`out.${ext}`,
]);
},
);
test.each(["wav", "aac"])("drops video streams for %s output", async (ext) => {
await convert("in.mp3", "mp3", ext, `out.${ext}`, undefined, mockExecFile);