Fix wrong path in thumbnail creation
This commit is contained in:
parent
ec176c8119
commit
2f12b45b77
1 changed files with 1 additions and 1 deletions
|
@ -22,7 +22,7 @@ export async function getMetadata(filePath: string): Promise<VideoMetadata> {
|
||||||
|
|
||||||
export async function getThumbnail(filePath: string): Promise<string> {
|
export async function getThumbnail(filePath: string): Promise<string> {
|
||||||
const uuid = Bun.randomUUIDv7();
|
const uuid = Bun.randomUUIDv7();
|
||||||
const thumbPath = join(rootPath(), "downloads", "thumbnails", `${uuid}.jpg`);
|
const thumbPath = join(rootPath(), "thumbnails", `${uuid}.jpg`);
|
||||||
return new Promise((resolve, reject) => {
|
return new Promise((resolve, reject) => {
|
||||||
ffmpeg(filePath)
|
ffmpeg(filePath)
|
||||||
.thumbnail({
|
.thumbnail({
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue