From f4a9934efd17bae5dd1f127d55fa055d157fac9a Mon Sep 17 00:00:00 2001 From: Luca Armaroli Date: Wed, 12 Aug 2020 18:45:14 +0100 Subject: [PATCH] videoInfo fetching per videorather then in bulk fixed side effects in main function of this change --- src/VideoUtils.ts | 140 ++++++++++++++++++++++------------------------ src/destreamer.ts | 25 ++++----- 2 files changed, 79 insertions(+), 86 deletions(-) diff --git a/src/VideoUtils.ts b/src/VideoUtils.ts index a9592f5..2e39e7d 100644 --- a/src/VideoUtils.ts +++ b/src/VideoUtils.ts @@ -45,8 +45,8 @@ function durationToTotalChunks(duration: string): number { } -export async function getVideoInfo(videoGuids: Array, session: Session, subtitles?: boolean): Promise> { - let metadata: Array