Skip to content

Commit

Permalink
fix: packageAfter for transcode job
Browse files Browse the repository at this point in the history
  • Loading branch information
matvp91 committed Oct 23, 2024
1 parent 686a64d commit 7e3c7a8
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/app/index.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<!doctype html>
<html lang="en">
<html class="dark" lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
Expand Down
9 changes: 9 additions & 0 deletions packages/artisan/src/consumer/workers/transcode.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import { ffprobeQueue, ffmpegQueue } from "../../producer";
import { uploadJson } from "../s3";
import { assert } from "../../assert";
import { getDefaultAudioBitrate, getDefaultVideoBitrate } from "../../defaults";
import { addPackageJob } from "../../producer";
import type { Input, PartialInput, Stream, PartialStream } from "../../types";
import type { Job } from "bullmq";
import type { FfprobeResult } from "./ffprobe";
Expand Down Expand Up @@ -62,6 +63,14 @@ export const transcodeCallback: WorkerCallback<

case Step.Meta: {
await handleStepMeta(job, token);

if (job.data.packageAfter) {
await addPackageJob({
assetId: job.data.assetId,
tag: job.data.tag,
});
}

await job.updateData({
...job.data,
step: Step.Finish,
Expand Down
1 change: 0 additions & 1 deletion packages/stitcher/src/vast.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ export type AdMedia = {

export async function getAdMediasFromVast(adBreak: VmapAdBreak) {
const adMedias = await getAdMedias(adBreak);

const result: AdMedia[] = [];

for (const adMedia of adMedias) {
Expand Down

0 comments on commit 7e3c7a8

Please sign in to comment.