From cf6e4c550829d89fe21c8aaabe377fb7a4eaae32 Mon Sep 17 00:00:00 2001 From: Saksham Shekher <95137948+OshekharO@users.noreply.github.com> Date: Thu, 21 Sep 2023 07:39:10 +0530 Subject: [PATCH] Add: Audio Tracks --- repo/invidious.io.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/repo/invidious.io.js b/repo/invidious.io.js index 29d840d..becc374 100644 --- a/repo/invidious.io.js +++ b/repo/invidious.io.js @@ -69,10 +69,17 @@ export default class extends Extension { language: item.code, })); + const track = res.audioStreams.map((item) => ({ + title: item.format, + url: item.url, + language: item.quality, + })); + return { type: "hls", url: res.videoStreams?.[0]?.url, subtitles: subtitles, + audioTrack: track, }; } }