From 4ccec057af212b01f464584c0c0c9d9ed1e5e495 Mon Sep 17 00:00:00 2001 From: Sam Therapy Date: Sat, 14 May 2022 19:43:22 +0200 Subject: [PATCH] Add a tiny bit of verbosity Signed-off-by: Sam Therapy --- generator.ts | 2 ++ 1 file changed, 2 insertions(+) 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; }