From 633678404c784ee2b108b5bfb36193d96e3235e9 Mon Sep 17 00:00:00 2001 From: snobu Date: Mon, 30 Mar 2020 10:27:32 +0300 Subject: [PATCH] Fix removed hardcoded API version since we get it from sessionInfo --- destreamer.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/destreamer.ts b/destreamer.ts index 39896d9..4e3744f 100644 --- a/destreamer.ts +++ b/destreamer.ts @@ -16,9 +16,6 @@ import axios from 'axios'; * exitCode 88 = error extracting cookies */ -const ApiVersion = "1.3-private" -const args: string[] = process.argv.slice(2); // TODO: Remove this - const argv = yargs.options({ videoUrls: { type: 'array', demandOption: true }, username: { type: 'string', demandOption: true }, @@ -241,6 +238,7 @@ async function getVideoInfo(videoID: string, session: any) { } // We should probably use Mocha or something +const args: string[] = process.argv.slice(2); if (args[0] === 'test') { BrowserTests();