Added deciphering of audio only formats in decipher info.

This commit is contained in:
killer069
2022-01-27 13:22:26 +05:30
parent 5ceb9b05d6
commit 92a023e6d9
2 changed files with 18 additions and 11 deletions

View File

@@ -63,7 +63,7 @@ export async function stream_from_info(
info: InfoData | StreamInfoData,
options: StreamOptions = {}
): Promise<YouTubeStream> {
if (!info.format || info.format.length === 0)
if (info.format.length === 0)
throw new Error('Upcoming and premiere videos that are not currently live cannot be streamed.');
const final: any[] = [];