diff --git a/generator.ts b/generator.ts index e844fb7..cfe64d5 100644 --- a/generator.ts +++ b/generator.ts @@ -157,6 +157,7 @@ async function ffprobe(videoFile: string): Promise> { * @returns the URL of the uploaded file directly */ async function upload(location: string): Promise { + console.log(`Uploading ${location}, this will take time...`); const file = await Deno.open(location, { read: true }); const stream = readableStreamFromReader(file); @@ -174,6 +175,7 @@ async function upload(location: string): Promise { const jsondata = await res.json().catch(() => { Deno.exit(1); }); + console.log(`Successfully uploaded ${location} to ${jsondata.url}.\n`); return jsondata.direct_url; }