From 102ec0a59546e1c754b5ba5ba941156b2ac5fb0d Mon Sep 17 00:00:00 2001 From: killer069 <65385476+killer069@users.noreply.github.com> Date: Tue, 17 Aug 2021 12:52:49 +0530 Subject: [PATCH] Reconnect FIX --- package-lock.json | 4 ++-- package.json | 2 +- play-dl/YouTube/stream.ts | 3 ++- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/package-lock.json b/package-lock.json index b025d43..ea9f4a8 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "play-dl", - "version": "0.1.2", + "version": "0.1.3", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "play-dl", - "version": "0.1.2", + "version": "0.1.3", "license": "MIT", "dependencies": { "got": "^11.8.2" diff --git a/package.json b/package.json index 16796e8..d6578eb 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "play-dl", - "version": "0.1.2", + "version": "0.1.3", "description": "YouTube, SoundCloud, Spotify downloader", "main": "dist/index.js", "typings": "dist/index.d.ts", diff --git a/play-dl/YouTube/stream.ts b/play-dl/YouTube/stream.ts index 43427f6..f6e9b55 100644 --- a/play-dl/YouTube/stream.ts +++ b/play-dl/YouTube/stream.ts @@ -89,6 +89,7 @@ export async function stream(url : string, options? : StreamOptions){ 'Connection': 'keep-alive', 'Accept-Encoding': '', 'Accept-Language': 'en-US,en;q=0.8' - } + }, + http2 : true }) } \ No newline at end of file