Fix error extraction here as well

This commit is contained in:
absidue 2022-04-08 15:41:51 +02:00
parent 5408e2e7b4
commit c40b432ee3

View File

@ -387,7 +387,8 @@ export async function video_stream_info(url: string, options: InfoOptions = {}):
throw new Error(
`While getting info from url\n${
player_response.playabilityStatus.errorScreen.playerErrorMessageRenderer?.reason.simpleText ??
player_response.playabilityStatus.errorScreen.playerKavRenderer?.reason.simpleText
player_response.playabilityStatus.errorScreen.playerKavRenderer?.reason.simpleText ??
player_response.playabilityStatus.reason
}`
);
}