Skip to content

Commit

Permalink
Add a file extension to download url
Browse files Browse the repository at this point in the history
  • Loading branch information
mjh1 committed Sep 18, 2024
1 parent 0d13250 commit becc2e5
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/api/src/controllers/asset.ts
Original file line number Diff line number Diff line change
Expand Up @@ -420,7 +420,11 @@ function getDownloadUrl(
if (source) {
return pathJoin(base, asset.playbackId, source.path);
}
return pathJoin(base, asset.playbackId, "video");
return pathJoin(
base,
asset.playbackId,
"video/download." + asset.videoSpec.format,
);
}

export async function withPlaybackUrls(
Expand Down

0 comments on commit becc2e5

Please sign in to comment.