From f1476ffe39c330f0f1c46139fe66b8ee5b825631 Mon Sep 17 00:00:00 2001 From: Luca Armaroli Date: Wed, 9 Sep 2020 04:56:12 +0200 Subject: [PATCH] done decryption/merging of video/audio/sub traks --- src/destreamer.ts | 129 ++++++++++++++++++++++++++++++++-------------- 1 file changed, 91 insertions(+), 38 deletions(-) diff --git a/src/destreamer.ts b/src/destreamer.ts index 208ef4b..db6d06a 100644 --- a/src/destreamer.ts +++ b/src/destreamer.ts @@ -1,6 +1,6 @@ import { ApiClient } from './ApiClient'; import { argv, promptUser } from './CommandLineParser'; -import { getDecrypter } from './Descrypter'; +import { getDecrypter } from './Decrypter'; import { DownloadManager } from './DownloadManager'; import { ERROR_CODE } from './Errors'; import { setProcessEvents } from './Events'; @@ -10,7 +10,7 @@ import { getPuppeteerChromiumPath } from './PuppeteerHelper'; import { TokenCache/* , refreshSession */} from './TokenCache'; import { Video, Session } from './Types'; import { checkRequirements, /* ffmpegTimemarkToChunk, */parseInputFile, parseCLIinput, getUrlsFromPlaylist} from './Utils'; -import { getVideoInfo, createUniquePath } from './VideoUtils'; +import { getVideosInfo, createUniquePaths } from './VideoUtils'; import { exec, execSync } from 'child_process'; import fs from 'fs'; @@ -131,9 +131,9 @@ async function downloadVideo(videoGUIDs: Array, logger.info('Downloading video info, this might take a while...'); - const videos: Array