Skip to content

Commit

Permalink
Do not add und as language to packager
Browse files Browse the repository at this point in the history
  • Loading branch information
matvp91 committed Dec 5, 2024
1 parent 6bd2a84 commit c1b9cc5
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions packages/artisan/src/workers/package.ts
Original file line number Diff line number Diff line change
Expand Up @@ -88,16 +88,23 @@ async function handleStepInitial(job: Job<PackageData>, dir: WorkerDir) {
}

if (stream.type === "audio") {
packagerParams.push([
const params = [
`in=${inDir}/${key}`,
"stream=audio",
`init_segment=${file.name}/init.mp4`,
`segment_template=${file.name}/$Number$.m4a`,
`playlist_name=${file.name}/playlist.m3u8`,
`hls_group_id=${getGroupId(stream)}`,
`hls_name=${getName(stream)}`,
`language=${stream.language}`,
]);
];

if (stream.language !== "und") {
// TODO: We should use getLangCode here to figure out if we can pass a valid
// iso str, and leave it as-is when it is null.
params.push(`language=${stream.language}`);
}

packagerParams.push(params);
}

if (stream.type === "text") {
Expand Down

0 comments on commit c1b9cc5

Please sign in to comment.