From 6c0e37ad981239af41438ece94cde01e350ae5e6 Mon Sep 17 00:00:00 2001 From: Luca Armaroli Date: Sat, 5 Sep 2020 12:40:41 +0200 Subject: [PATCH] created WebSocket/Aria2c errors --- src/Errors.ts | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/src/Errors.ts b/src/Errors.ts index dc8d28b..b975583 100644 --- a/src/Errors.ts +++ b/src/Errors.ts @@ -5,7 +5,10 @@ export const enum ERROR_CODE { MISSING_FFMPEG, UNK_FFMPEG_ERROR, INVALID_VIDEO_GUID, - NO_SESSION_INFO + NO_SESSION_INFO, + NO_ENCRYPTION, + ARIA2C_CRASH, + NO_CONNECT_ARIA2C } @@ -25,7 +28,13 @@ export const errors: {[key: number]: string} = { [ERROR_CODE.INVALID_VIDEO_GUID]: 'Unable to get video GUID from URL', - [ERROR_CODE.NO_SESSION_INFO]: 'Could not evaluate sessionInfo on the page' + [ERROR_CODE.NO_SESSION_INFO]: 'Could not evaluate sessionInfo on the page', + + [ERROR_CODE.NO_ENCRYPTION]: 'Could not extract the encryption info from the playlist', + + [ERROR_CODE.ARIA2C_CRASH]: 'The aria2c rpc server crashed with the previous message', + + [ERROR_CODE.NO_CONNECT_ARIA2C]: 'Could not connect to Aria2c json-rpc webSocket' };